Skip to content

Conversation

cesine
Copy link
Owner

@cesine cesine commented Jun 25, 2015

Added some tests for different use cases of reproducible clouds that i found others had asked for.

  • As a user I want to be able to remove words and see roughly the same cloud
in this example the word 'roughly' has been removed but all other words stay put 
upon re-render because
1. the draw function saves color and transform on the word

screen shot 2015-06-24 at 7 01 52 pm

in this example the same text is drawn the same because 
1. the draw function saves color and transform on the word
2. a random generator is used with the same seed now that we have various PRs requests implemented in 1.1.x 

screen shot 2015-06-24 at 7 02 00 pm

in this example a stringified json is used to supply the words and they are drawn the same on every load because 
1. the draw function saves color and transform on the word

screen shot 2015-06-24 at 8 05 58 pm

screen shot 2015-06-24 at 8 07 44 pm

screen shot 2015-06-24 at 10 57 50 pm

cesine added a commit that referenced this pull request Jun 25, 2015
@cesine cesine merged commit 6850909 into master Jun 25, 2015
@cesine cesine deleted the reproducibleClouds branch June 25, 2015 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant