vydd / sketch

A Common Lisp framework for the creation of electronic art, visual design, game prototyping, game making, computer graphics, exploration of human-computer interaction, and more.
MIT License
1.39k stars 67 forks source link

Make it possible to specify :min-filter or :mag-filter on image creation [ new feature ] #92

Closed Gleefre closed 9 months ago

Gleefre commented 9 months ago

Maybe needs further work to check that arguments provided are valid names for corresponding filters, but it works :) Maybe should be also provided for the canvas?

(Reason: I want to be able to use pixel graphics, which looks ugly with the default mag-filter.)

vydd commented 9 months ago

Thanks! It would be great to have this for the canvas as well, yes.

vydd commented 9 months ago

(it would be nice to have these things documented too, but it would be a bit unfair to insist on it as I haven't updated docs myself in ages)

Gleefre commented 9 months ago

I have plans on updating documentation at some point - but I'd like to do actual work first (like this one). And there is also the Lisp Game Jam going on right now, so I'm kind of preferring to delay adding the documentation.

Gleefre commented 9 months ago

On canvases: I'm not sure how to go about that: The most natural place for it would be the argument to canvas-image, but I don't know what should happen if the user pass another filter after the canvas was locked.