Greyscale bars/Display: Difference between revisions
Content added Content deleted
Line 832: | Line 832: | ||
verts = Vector{RGB}() |
verts = Vector{RGB}() |
||
hwidth = Int(ceil(screenwidth/n)) |
hwidth = Int(ceil(screenwidth/n)) |
||
for |
for x in 00:Int(floor(0xff/(n-1))):0xff |
||
rgbgray = RGB(x/255, x/255, x/255) |
rgbgray = RGB(x/255, x/255, x/255) |
||
for |
for i in 1:hwidth |
||
push!(verts, rgbgray) |
push!(verts, rgbgray) |
||
end |
end |