require "asobi" flower = petal(40, 16).repeat(10).in_fan.colored(from: :hotpink, to: :gold, around: true) comet = circle(4).colored(:white).orbit(62, every: 6).trail(12) sky = flower.animate(2) { |f, t| f.rotate(t * 36) } + comet show sky.glowing, on: :black, grain: true
コードを書き換えると絵が変わります。Tab で空白2つ。エディタから出るには Esc のあと Tab。
言葉 · 71
言葉を選ぶと、そのリファレンスが新しいタブで開きます。
circle
ellipse
rect
square
triangle
polygon
star
line
text
path
arc
wave
ring
heart
petal
moon
drop
cloud
space
nothing
hsl
gray
on
under
+
repeat
*
beside
above
move
rotate
scale
grow
shrink
mirror
flip
colored
outlined
stroke
opacity
glowing
blurred
blended
shadowed
clipped_by
in_row
in_column
in_grid
in_ring
in_fan
in_spiral
scattered
change_each
to_art
spin
pulse
sway
orbit
fade
bounce
drift
shift_color
one_by_one
trail
animate
at
show
save
to_svg
bounds
turn