Yin and yang: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
(One intermediate revision by one other user not shown)
Line 1,997:
 
=={{header|EasyLang}}==
[https://easylang.dev/show/#cod=VY/dCsIwDEbv8xTftbIapx30cWYso1jXEVHs20t13SbkIj8nJ2TSJJCgAoXAwBAASTEp5JsGleihZGgqaA5j7scBb2Ro5e/p5UunLqDFDgpmXm3OuTp++GEmHKNxvFWggS6aVfGrDjhVz8Lv//jNlZkvBkOXXm6Dpud4hbWWJPpeqf7ScoluqS2jYxzP9AE= Run it]
[https://easylang.dev/show/#cod=TY/BDoIwEETv+xVz1lAXtCb9HKyEEJGSNRr7926xBZIeOjszb7OzBA8/iIfAw8AQAB/GoHL5qjV2EDI0p2gcpthOPb6I2sj5Z/h0aVIKaHBQl5k3mnOu2K+uz4kKbBo4RuV4D1JDVtgG+qsTzoW25o8ZVttdcBnsF+dywhm6tf7RS3hPd1hrSa9shcp5Dad3XbVVwagv9AM= Run it]
 
<syntaxhighlight>
Line 2,008:
circ 2 * r 000
color 999
circseg 2 * r - 0.2 90 -90
move x y - r
circ r 000
circ r / 3 999
move x y + r - 0.15
circ r - 0.1 999
circ r / 3 000
.
Line 5,611:
===Text===
{{trans|AWK}}
<syntaxhighlight lang="ecmascriptwren">var inCircle = Fn.new { |centerX, centerY, radius, x, y|
return (x-centerX)*(x-centerX)+(y-centerY)*(y-centerY) <= radius*radius
}
Line 5,710:
{{libheader|DOME}}
With a few minor changes, we can use the same code to draw these symbols in DOME.
<syntaxhighlight lang="ecmascriptwren">import "dome" for Window
import "graphics" for Canvas, Color
 
9,476

edits