Image-sequencer: Halftone angle (in radians) needs to be a decimal instead of an integer

Created on 13 May 2021  Â·  3Comments  Â·  Source: publiclab/image-sequencer

When I try to adjust the angle of a halftone in this sequence: https://sequencer.publiclab.org/examples/#steps=color-halftone{}

The slider will only go to 0 or 1, and I can't set a decimal. I think the type is set incorrectly or perhaps the input step size?

rads

Aha, the input is this:

<input class="form-control target" type="range" name="angle" value="0.25" placeholder="" min="0" max="1.57" step="1">

https://github.com/publiclab/image-sequencer/blob/3caa033c8febf5055c28f616b534933c00fcbe65/src/modules/ColorHalftone/info.json#L5-L12

this shows it should be a float, but i think we need to set the "step" in the options too:

https://github.com/publiclab/image-sequencer/blob/3caa033c8febf5055c28f616b534933c00fcbe65/examples/lib/defaultHtmlStepUi.js#L132-L141

So maybe if we add a step param to the info.json of the color halftone module, this'll work?

bug help wanted

All 3 comments

So maybe if we add a step param to the info.json of the color halftone module, this'll work?

I think it might work. Will take a look at this soon...

Hey @jywarren, I think the module already has the step parameter to account for the variable angle 😅. Maybe the changes are not yet pushed to the stable version release then...🤔

https://github.com/publiclab/image-sequencer/blob/86115fcc88225c907fefd92762e60042c93f73c5/src/modules/ColorHalftone/info.json#L6-L13

That's because the module works perfectly on the local dev env:

https://user-images.githubusercontent.com/58583793/118222589-850cb600-b49d-11eb-8de1-a56e1d06eb56.mp4

Ack! Good catch! I knew I was having deja vu while writing that issue.... !!

On Fri, May 14, 2021, 12:49 AM Mohammad Warid @.*>
wrote:

Hey @jywarren https://github.com/jywarren, I think the module already
has the step parameter to account for the variable angle 😅. Maybe the
changes are not yet pushed to the stable version release then...🤔

https://github.com/publiclab/image-sequencer/blob/86115fcc88225c907fefd92762e60042c93f73c5/src/modules/ColorHalftone/info.json#L6-L13

That's because the module works perfectly on the local dev env:

https://user-images.githubusercontent.com/58583793/118222589-850cb600-b49d-11eb-8de1-a56e1d06eb56.mp4

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/image-sequencer/issues/1889#issuecomment-841003446,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAF6J5ESYXTDPWQP62YBGLTNSTVLANCNFSM443JV5QQ
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vaibhavmatta picture vaibhavmatta  Â·  4Comments

harshkhandeparkar picture harshkhandeparkar  Â·  4Comments

kindanduseful picture kindanduseful  Â·  5Comments

VladimirMikulic picture VladimirMikulic  Â·  3Comments

blurry-x-face picture blurry-x-face  Â·  4Comments