I am a beginner to compose. Working myself thought some tutorials and such so far, everything seems logical.
Something I'd like to do, since I used to code some gameloops and drawing effects before: Draw manually (lines, pixels etc.) on some canvas. And I am not sure how this would work together. As I understand, overwriting a Painter would not be the right appraoch as the painting might be expensive - I expect my drawing to be the bottleneck for drawing perforance.
So I should create a ImageBitmap, darw on there, and just display the Image? But then again, drawing on it would mutate the data , causing a recompose every time? I guess I would double-buffer…?
Can someone give me a breadcrumb trail to follow? 😄