mrdoob / texgen.js Goto Github PK
View Code? Open in Web Editor NEWJavaScript Texture Generator
Home Page: http://texgenjs.org/
License: MIT License
JavaScript Texture Generator
Home Page: http://texgenjs.org/
License: MIT License
I was looking for a texture generation library, and have little experience in the area. The README didn't help :)
At over 1,100 stars for the repo, I'm probably missing something obvious.
Do you think using 0-255 values for the tint parameters would be better? I've found myself always using the 256 rgb value / 255. It could either replace 0-1 entirely, or it could work without changing the current functionality by assuming any input above 1 is a 256 rgb value, although this would make 1 & 255 equivalent inputs. I am willing to code this change.
Every TG.Program needs the same two functions getParams
and setParamValue
.
getParams: function () {
return params;
},
setParamValue: function ( id, value ) {
params[ id ] = value;
},
Could be nice to be implemented just in TG.Program, not on every subclass.
In project description (Github) the URL http://texgenjs.org/ redirects to http://texgenjs.org/%20%20
Try to remove spaces at the end of URL.
I think it would be better if TG.Number was renamed to TG.Constant.
In my opinion, it makes a bit more sense in the context of generating values and gives a better idea of what it does and what it is used for.
The build file isn't updated !
TG.RadialGradient doesnt exist in the min version
It'd be nice to be able to blur a texture (for getting a glowing effect).
The main site doesn't seem to be a demo, but just displays a PNG of some samples. Can't you add a live example on that page, to demonstrate what it doesn? You might also want to explain that the rendered result is a canvas element (which I'm assuming because of the method name in your code example). Thanks!
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.