evil-mad / robopaint

The software for your friendly painting robot kit!
126 stars 34 forks source link

Change behavior at get-more-paint #29

Closed oskay closed 11 years ago

oskay commented 11 years ago

For expediency when brush is already inked with the correct color, but running dry:

Do not swish in the water, just dip, twice, quickly. Do a single swirl around the paint dish.

oskay commented 11 years ago

Possible approach:

Add a new tool:
[tools.water0Dip] x = 0 y = 0 wiggleAxis = y wiggleTravel = 5 wiggleIterations = 2

techninja commented 11 years ago

I like it! Though I think my "wiggle" attachment tools is a bit weird. Ah well, I'll do some experimentation and see if I can achieve the desired effect.

oskay commented 11 years ago

Working pretty well so far, over here!

oskay commented 11 years ago

Demo in video, showing quick dip in the water for re-inking. http://www.kickstarter.com/projects/1894919479/super-awesome-sylvias-watercolorbot-0/posts/543539

Also changed for each color: wiggleTravel = 250 wiggleIterations = 4

techninja commented 11 years ago

Curious, how exactly did you manage the quick dip without code changes? I haven't looked, but I'd imagine that would require some tweaking.

oskay commented 11 years ago

Well, minor code changes. :)

In cncserver.client.wcb.js, I changed the function getMorePaint at line 68:

cncserver.api.tools.change('water0Dip', function(d){

Then in watercolorbot.ini, added

[tools.water0Dip]
x = 0
y = 0
wiggleAxis = y
wiggleTravel = 5
wiggleIterations = 2
techninja commented 11 years ago

Ha! look at you, JavaScript hacker! Very good work. I should have you use this experience and submit your change as a pull request! But... It might just be easier for me to make the change ;)

oskay commented 11 years ago

Please do add these changes. I'm going to file a separate issue to request the addition of a few more "tools".