You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello and thanks for the great library! i have added a scroll event for my project and it works great. i was wondering, do you have a quick trick for offsetting the image so when cropped the canvas focuses a specific area? either in percent like 75% 100% or just "center right" or something like that.
any help is appreciated!
The text was updated successfully, but these errors were encountered:
//look for the relevant areas in js code where similar definitions are done and add this to each part
this.focusx = this.container.getAttribute('data-focusx');
...
this.uFocusx = new Uniform('focusx', '1f', this.program, this.gl);
...
this.uFocusx.set(this.focusx);
now if i set 'data-focusx' in my html element like data-focusx="0.75" then the image is rendered focusing the area at 75% of the width when the image is getting cropped
hello and thanks for the great library! i have added a scroll event for my project and it works great. i was wondering, do you have a quick trick for offsetting the image so when cropped the canvas focuses a specific area? either in percent like 75% 100% or just "center right" or something like that.
any help is appreciated!
The text was updated successfully, but these errors were encountered: