You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the JVM you can't draw SVG to the screen. Use the java2d backend for that instead. However you can write SVG output in the usual way.
But there's no example. Since it mentions "in the usual way", the next logical step seems to be the "Writing to a File" docs, where the example looks like:
Asked in Discord, but adding an issue to track this here.
The SVG documentation reads:
But there's no example. Since it mentions "in the usual way", the next logical step seems to be the "Writing to a File" docs, where the example looks like:
Intuitively, one would just change
import doodle.java2d.*
toimport doodle.svg.*
andcircle.write[Svg]("circle.svg")
. However, this triggers an error:No given instance of type doodle.effect.DefaultFrame[Frame] was found for parameter f of method apply in class FileWriterOpsHelper
Which is not clear if:
Frame
Maybe the documentation could have a bit more examples and the implicit not found message could be improved?
The text was updated successfully, but these errors were encountered: