June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
20
Task/Pinstripe-Display/Julia/pinstripe-display.julia
Normal file
20
Task/Pinstripe-Display/Julia/pinstripe-display.julia
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using Luxor
|
||||
|
||||
function drawbars(w, h, sections, dk, lt)
|
||||
Drawing(w,h)
|
||||
background("white")
|
||||
width = 1
|
||||
height = h/sections
|
||||
for y in 0:height:h-1
|
||||
setline(width)
|
||||
for x in 0:w/width
|
||||
sethue(x % 2 == 0 ? dk: lt)
|
||||
line(Point(x*width,y), Point(x*width,y+height), :stroke)
|
||||
end
|
||||
width += 1
|
||||
end
|
||||
end
|
||||
|
||||
drawbars(1920, 1080, 4, "black", "white")
|
||||
finish()
|
||||
preview()
|
||||
Loading…
Add table
Add a link
Reference in a new issue