JD557 / minart

A minimal Scala creative coding library targeting JVM/Javascript/Native
MIT License
52 stars 3 forks source link

Add MutableSurface#modify #455

Closed JD557 closed 10 months ago

JD557 commented 10 months ago

Adds a MutableSurface#modify method to manipulate a mutable surface as a surface view.

While this might not be particularly interesting for pure Minart apps (that can rely on RamSurface), it's pretty helpful for interop with other libraries. For example, if a JS library uses ImageData, that could be modified with ImageDataSurface(imageData).modify(doStuffHere).