grol-io / grol

Go REPL Open Language
https://grol.io
Apache License 2.0
22 stars 2 forks source link

Adding vector graphics; add `atan2` as well. Fixed function caching. #219

Closed ldemailly closed 2 months ago

ldemailly commented 2 months ago

using golang.org/x/image/vector

adding

image.move_to image.line_to image.close_path image.draw

sample generates

grol

difficult part is/was what to do with alpha when adding

ldemailly commented 2 months ago

With the line with thickness demo:

grol

ldemailly commented 2 months ago

examples/disc.gr:

grol

ldemailly commented 2 months ago

circle: thickness 40

grol

thickness 1

grol

ldemailly commented 2 months ago

Random bezier points (discord.go version)

image