Yin and yang: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
(Added Easylang)
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
(2 intermediate revisions 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/BDsIgEETv+xVz1hS3VUz4HFybprFCQ6Ipfy/UFppwYHZm3sIcvEDGIAgQKCgCIH7ySa7XZE09AimaczSOLlo3YEFMjS3/9t8+T/YCOpySy8yVZoypPFsyDVh1MIzG8BGVjFBwFfVXF1x3XsmfN1irD8F1cFy9lTNO0cPKawj+457QWtP6Lto/2HE+96J1Eoz2Rj8= Run it]
 
<syntaxhighlight>
Line 2,008:
circ 2 * r 000
color 999
circlearccircseg 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