Created
February 25, 2023 16:38
-
-
Save ongaeshi/53325d1b2dc08369483eda7adf06a112 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://twitter.com/lisasekaida/status/1629291753261117441 | |
$s=600 | |
def setup | |
createCanvas($s,$s,WEBGL) | |
noStroke | |
end | |
$a=0 | |
def draw | |
background(0) | |
rotateX($a) | |
rotateY(2*$a) | |
(-5...5).each do |i| | |
(-5...5).each do |t| | |
(-5...5).each do |f| | |
push() | |
translate(200*i,200*t,200*f) | |
fill($s,$s,0,63) | |
torus(90) | |
pop() | |
end | |
end | |
end | |
$a += 0.005 | |
end |
Author
ongaeshi
commented
Feb 25, 2023
$s=600;def setup;createCanvas($s,$s,WEBGL);noStroke;end;$a=0;def draw;background(0);rotateX($a);rotateY(2*$a);(-5...5).each{|i|(-5...5).each{|t|(-5...5).each{|f|push;translate(200*i,200*t,200*f);fill($s,$s,0,63);torus(90);pop}}};$a+=0.005;end
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment