meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.55k stars 404 forks source link

Change Gamma by Channel? #110

Open confile opened 10 years ago

confile commented 10 years ago

Is it possible to change Gamma by channel?

E.g. this.gamma("r",1.2);

bebraw commented 10 years ago

Looks like this isn't possible at the moment as it uses the given factor to modify each channel. It should be fairly small change to allow adjustments per channel, though. Just need to decide syntax.