membrane

zimablue 2024-02-14T12:37:33.306109Z

getting weird behavior from with-line-size in webgl/canvas, my assumption was that it would only apply to drawing lines inside that lexical scope, but it's modifying them globally. Also, when two are specified differently in different places, redraws sometimes end up drawing eg. component_A with the line size specified for B. I'm thinking maybe line size isn't stored on the context by push-state (??), that's my first guess to why thie behaviour would happen

zimablue 2024-02-14T12:42:02.271549Z

sorry *with-stroke-width

phronmophobic 2024-02-14T20:30:30.343049Z

with-stroked-width doesn't create a scope. it just returns a new view where its children will be drawn with the specified width.

phronmophobic 2024-02-14T20:30:58.032629Z

do you have some example code?

zimablue 2024-02-14T21:01:07.415309Z

Sorry maybe scope is the wrong word but it's not respecting only-apply-to-children in my code, for sure. I don't have a simple reproducible example I'm snowed but can try to make one soon

zimablue 2024-02-14T21:01:42.031869Z

For now I'll workaround by using rects

phronmophobic 2024-02-14T21:08:12.861449Z

Yea, it should only apply to children. If not, that's a bug.