1j01 / pixelweaver Goto Github PK
View Code? Open in Web Editor NEW๐จ๐ฒ Reproducible procedural drawing tool (pre-alpha)
๐จ๐ฒ Reproducible procedural drawing tool (pre-alpha)
A screenshot of the GUI, and some example programs, of which I have now a lot:
(Sorting by size to get a pseudo-random smattering, due to PNG compression, further down there are less complex images (in terms of data or entropy or whatever), especially with single-color backgrounds:)
I also did some fun tree ones, like this guy, a sort of botanical zebra,
which you can download, import, reanimate and reseed:
I want this to work personally and it's also part of the spec, but the library I'm using doesn't support it:
google/material-design-lite#5030
There's a workaround solution proposed here: google/material-design-lite#5030
document.querySelector('.dialog-show').addEventListener('click', function() {
document.querySelector('dialog').showModal();
document.querySelector('dialog').addEventListener('click', outsideDialog);
});
function outsideDialog(event) {
var dialog = this;
var rect = dialog.getBoundingClientRect();
var isInDialog = (
rect.top <= event.clientY && event.clientY <= rect.top + rect.height &&
rect.left <= event.clientX && event.clientX <= rect.left + rect.width
);
if (!isInDialog) {
dialog.close();
dialog.removeEventListener('click', outsideDialog);
}
}
Use WebGLWorker to proxy WebGL code.
It will likely still be very easy to cause a page crash. Or freezing, but it shouldn't freeze up for reasonable code not trying to be a nuisance.
Ultimately WebGL stuff is still gonna run on the GPU, and go thru video drivers and such, so there are potential exploits there. But if it can't access the network, hopefully it can't do too too much, i.e. can't report information back to a server, and anyways, we can leave that up to browser vendors (hopefully).
GIFs, APNGs, or maybe a video format
Could append a zip file to a GIF, or probably other formats as well
For instance I have this animation:
But I have to save the PNG alongside it to be able to import the program:
Also saving animations from the UI would be nice just to not have to use an external program.
I made it reinitialize the WebGL context everytime it resets the state, to make things much simpler.
But I apparently should clean up the WebGL context (explicitly) before discarding it.
(Or maybe go back to trying to reset everything without destroying the context.)
https://stackoverflow.com/questions/37072303/how-to-free-and-garbage-collect-a-webgl-context
https://stackoverflow.com/questions/23598471/how-do-i-clean-up-and-unload-a-webgl-canvas-context-from-gpu-after-use
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.