Giter VIP home page Giter VIP logo

tgen's People

Contributors

dependabot[bot] avatar schalkt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tgen's Issues

How do I use this on my website?

Hello, How would I go about adding this to a wordpress website or anywebsite so that it chooses the background with the preset made from your website?

Mul not initialised in generator function

tgen/src/tgen-generator.js

Lines 306 to 322 in 712368f

generator.randIntSeed = function (min, max, even) {
var norm = generator.minMaxNormalize(min, max);
min = norm.min;
max = norm.max;
if (even === true) {
min = Math.round(min / 2);
max = Math.round(max / 2);
mul = 2;
} else {
mul = 1;
}
return (
mul * (Math.floor(generator.calc.randomseed() * (max - min + 1)) + min)
);
};

tgen-generator.js:316 Uncaught ReferenceError: mul is not defined

use of textures

Just wondering if I'm free to use these textures from student and commercial projects?

I really love the program btw, excited for the new site!

Question about checkerboard preset

Hi I like your generator and would like to use it for one of my projects! I'm trying to generate a basic checkerboard pattern using your "checkerboards" preset and deleting all but one of the items. However I'd like to change control both the colors, like an orange/blue pattern, rather than have one of the squares black. I tried looking through the source code but couldn't figure out how to modify it to make this happen. Do you have any suggestions?

Water preset?

I'm trying to build a seamlessly scrolling background to simulate a river flowing from right to left. What I've got working is in this Codepen, but I suspect a solid water-like background would give a much better illusion of motion. How could I use tgen to achieve that?

remove randomness

Is there any way to remove randomization seed for testing purposes.

Quasi-reproducibility of textures

I'm new to texture generation, so pardon my ignorance. While running the same code in the README several times, one of the generated textures seemed like a good fit for my project (#1). Is there an introspection API call to get some sort of ID of that texture, that would make it possible to reproduce it in the future, or at least within some parameters, e.g. dominant color?

Seamless Texture From Image

Thanks for the great work. Awesome tool. Can we currently create a seamless texture using a source image? From a URL, canvas, or otherwise?

PIXI

I'd like to use tgen textures as sprite textures in PIXI. Possible?

console.log events

First off, I have no idea why this project isn't more popular. The results I'm getting are amazing. Small issue:

I do js debugging through the console and the performance console.log() lines triggered by events in tgen-events.js are a little frustrating to wade through after a while. I'm putting this to block them:

tgen.event('beforeEffect', 'save start time', function ($g, effect) {});
tgen.event('afterEffect', 'log', function ($g, effect) {});
tgen.event('beforeRender', 'log', function ($g, params) {});
tgen.event('afterRender', 'log', function ($g, params) {});

Any chance you can add something where you turn on the events only when you need to see them?

Thank you!

Help / documentation for https://texture-generator.com/generator/demo/

This is cool, but without a documentation of the functions, the names of the input parameters, the general syntax / logic of the scripts etc. it is very hard to use the generator... A small help / wiki page would probably already be sufficient and make the process so less frustrating.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.