Skip to content

Commit

Permalink
緑と赤でクリスマスカラーを交互にしてみた
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu09 committed Dec 5, 2023
1 parent a25c2ab commit 29ebefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/tree.rb
Expand Up @@ -16,7 +16,7 @@ def draw
for xIndex in 0..width
y = 0

color = (xIndex == 4) ? "green" : "white"
color = xIndex.even? ? "green" : "red"
fill(color)

for yIndex in 0..height
Expand Down

0 comments on commit 29ebefe

Please sign in to comment.