-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal : Draw behind, z index ? #62
Comments
The interfaces for the specific target file formats are in "direct" mode, meaning that issuing a draw command immediately draws the path. The only exception is the general |
@tdewolff Thanks for your fast answer. Indeed I was talking about the general |
I succeeded to draw white rectangle behind like this : func onWhite(c *canvas.Canvas) *canvas.Canvas {
cn := canvas.New(c.W, c.H)
ctx := canvas.NewContext(cn)
ctx.SetFillColor(canvas.White)
ctx.DrawPath(0, 0, canvas.Rectangle(math.Ceil(c.W), math.Ceil(c.H)))
c.Render(cn)
return cn
} But this is not very nice. |
I've incorporated this issue in the new roadmap from where it will be tracked: #74 |
I'm trying to draw a path behind. But it looks like the
RenderPath
can add only on top of the layers stack.Is it possible to append a new method
RenderPathBehind
? Or even better addz
-index parameter to the layers and when new path is added it is inserted at the right 'z'-position.The text was updated successfully, but these errors were encountered: