Comments (12)
Do you mean a seed color? Or seeding the randomization?
from pleasejs.
Seeding the randomisation; this could be done by implementing something like a RC4 pseudo-random number generation (here is an implementation of it I've done for a different project).
What I have in mind is the ability to generate a set of colours based on selected parameters and a seed (e.g. a string), which would always return the same colour for the same string.
from pleasejs.
Can you give me an example of a compelling use for this?
from pleasejs.
For instance, you can generate a set of colours based on a nickname etc.. It's useful for situations when you want to have the same colour scheme for a seed (e.g. nickname) but you don't want to store the generated colours anywhere. All you need to do is read the nickname and retrieve the set of colours you have generated.
Another example, in procedurally generated games you might want to generate some colour schemes. The procedural generation could be seed based, and you always want to have the same output/result for the same seed.
from pleasejs.
Give it a whack, seems cool. My main concern is the size to benefit ratio of this change.
from pleasejs.
It will be just a few lines of modifications to the existing code plus the implementation of RC4, which is little over 40 lines and can be improved. I'll give it a go this weekend.
from pleasejs.
@Fooidge
This actually sounds pretty cool and would add a layer of sociability between users of PleaseJS.
For example, I could tweet:
"Check out 'Fudge'! It's absolutely delicious! #PleaseJS"
[Random passerby comment]
from pleasejs.
Except 'Fudge' might be magenta. But I am sort of geeking already at the thought of having a hashtag for this.
from pleasejs.
I see no harm in Fudge being magenta.
Just hope Fooidge isn't pink? ;)
from pleasejs.
from pleasejs.
No. Was gonna look at it tomorrow.
Jordan Checkman
On Sep 20, 2014, at 4:01 PM, Taconut [email protected] wrote:
Has this enhancement been abandoned?
—
Reply to this email directly or view it on GitHub.
from pleasejs.
Added in 1482cad
from pleasejs.
Related Issues (20)
- Returns an array containing sometimes the same colors HOT 1
- make_scheme() 'mono', actually renders 4 colors instead of 5 HOT 4
- Bump npm to newest version HOT 1
- Generate constant color for an object based on a key. HOT 4
- Question: Lite version?
- make_color() returns "#00000.randomhex" when base_color: black HOT 1
- Better Documentation
- Change the dist file name with `.min.` suffix
- Documentation about colors_returned=1 says you only get one, I expected a string HOT 3
- greyscale: true generates ["#000000.36cd673"]
- How do i get color by opacity HOT 1
- Please publish to NPM HOT 1
- Add Plz mode
- Generate Material Design shades from single color
- human distinguishable
- Colours returned are waaay too long for HEX! HOT 1
- Invalid conversion rgb-hsv
- Domain Expired HOT 1
- Any way to fork and create website? HOT 8
- Archive?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pleasejs.