Creative Coding 習作 2024/5/26 - 変数
code:ruby
def setup
createCanvas(1920, 1080)
background(255)
end
def draw
color blue = color(9, 37, 87)
color red = color(135, 3, 17)
color yellow = color(211, 179, 15)
strokeWeight(30)
stroke(blue)
line(0, 980, width, 980)
stroke(red)
line(0, 10, width, 10)
stroke(blue)
line(0, 90, width, 90)
stroke(yellow)
line(100, 0, 100, height)
stroke(yellow)
line(0, 650, width, 650)
end
https://scrapbox.io/files/6652a04a5e171b001daf8410.png