ruuda / pris

A language for designing slides
https://docs.ruuda.nl/pris/
GNU General Public License v3.0
116 stars 5 forks source link

Add support for drawing solid circles #23

Closed ruuda closed 5 years ago

ruuda commented 5 years ago

Fun thing to try:

background_color = #ffffff

stroke_circle = function(r)
{
  put fill_circle(r + line_width * 0.5)
  color = background_color
  put fill_circle(r - line_width * 0.5)
}

{
  mid = (0.5w, 0.5h)
  put stroke_circle(0.45h) at mid
  put stroke_circle(0.1h) at mid + (-0.1w, -0.1w)
  put stroke_circle(0.1h) at mid + ( 0.1w, -0.1w)
  put fill_circle(0.05h) at mid + (-0.1w, -0.08w)
  put fill_circle(0.05h) at mid + ( 0.1w, -0.08w)
  put stroke_circle(0.15h) at mid + (0w, 0.1w)
}