Most efficient way to convert images to drawable assets

I created this primitive version, but it still take about 13 seconds for a 480/360 pixel screen, and 30 seconds to draw it. It's blurry and there has to be a better way. Any ideas? I'm pretty new to programming.

I updated it to have a much faster Black & White scanner/drawer that's much faster.

try using this block: image scanner _ drawer v2 script pic

where #1 is the x and #2 is the y positions.

untitled script pic (2)
reports an array of image pixels as RGBA.
"drawable" ???
Costumes are "drawable" i.e. can be displayed, stamped on the stage, combined with the "paste" and transformed with "Pixels" library.

I cant believe I missed that

I just meant converted to text. I should’ve been clearer.

wdym by "to text"?

So that you can take the text and draw it using pen pixel by pixel.

ok i will show you how to do that with dardoro's way in a moment

If there’s a better way than text I’d love to hear it.

whats the fastest way to draw the pixels?

I made a help with snap topic with that, once someone figures out the bugs then you can use it ( Pen alignment and transparency problem )

untitled script pic - 2024-11-09T010546.496

Untitled script pic - 2024-11-09T010801.821

also you can


and then stamp if you want it to be added to pen trails/on the stage permanently

why use the 'let' block instead of the script variable block?

Because it’s less blocks. But @dardoro could’ve just used only 1 let block by clicking the variadic arrow at the end.

Why not? It looks good and is easy to read...

Actually, you can't.

How to fix it

Because @dardoro used the "pixels" variable when defining the "text" variable, they couldn't use the expanded version of the "let" block.

Huh, ok. I hope that can be changed.