andrewstephens75 / as-dithered-image Goto Github PK
View Code? Open in Web Editor NEWHTML custom element to correctly dither an image giving pixel-perfect crisp results on all displays
License: MIT License
HTML custom element to correctly dither an image giving pixel-perfect crisp results on all displays
License: MIT License
Random ideas for the future (in no particular order)
Hi @andrewstephens75 . Thanks for this component. I'm hoping to possibly use it in a small festival site that is using diffused dithered images in its marketing campaign.
Can the component be used for a full width and height image background layer that fills the viewport in an object-fit: cover
manner?
I've tried a few things but not sure if it's worth pursuing further if the underlying component doesn't really support it.
Thanks!
macos 12.6.1
google chrome Version 107.0.5304.87 (Official Build) (x86_64)
scaled 1024x1280 90* rotation
same result in safari, works on firefox though
Hey! Having a lot of fun implementing things with this little script and I'm enjoying the results. Thanks for writing this!
Would it be possible to add ordered/Bayer dithering as an option?
Ordered dithering produces "worse" results than Atkinson dithering because of the visible cross-hatch effect, but some of us (me) think that effect is cool :)
And on the plus side, ordered dithering is very fast to execute.
Really cool component.
Here are some quick thoughts (could be a pull-request but I just wanted to put this out there):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.