Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created February 25, 2023 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ongaeshi/53325d1b2dc08369483eda7adf06a112 to your computer and use it in GitHub Desktop.
Save ongaeshi/53325d1b2dc08369483eda7adf06a112 to your computer and use it in GitHub Desktop.
# 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
@ongaeshi
Copy link
Author

image

@ongaeshi
Copy link
Author

@ongaeshi
Copy link
Author

$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