RosettaCodeData/Task/Draw-a-sphere/Jq/draw-a-sphere-2.jq
2017-09-25 22:28:19 +02:00

9 lines
328 B
Text

def draw_sphere:
svg,
"<title>Teal sphere</title>",
sphericalGradient("tealGradient"; null), # define the gradient to use
sphere(100;100;100; "tealGradient"), # draw a sphere using the gradient
sphere(100;300;100; "tealGradient"), # draw another sphere using the same gradient
"</svg>" ;
draw_sphere