Jump to content
You must now use your email address to sign in [click for more info] ×

Simple scripting language (like basic/c) modify image.


Recommended Posts

Simple scripting language (like basic/c) modify image. i know there is procedural texture but my ideas dont work becouse this kind is impossible if r is bigger g than result pixel is white anyother times is black. is only examle one thing what is lacking spliting to HSL channels like Paintshop Pro. which allows do creative things. your program very good fixing and scaling photos but super creative side is lacking. of course i i can use zomeother tools but some these programs are pricey and transfering files to such program and form such program takes time.

Link to comment
Share on other sites

I haven't played much with the procedural texture filter (looks like I probably should at some point) but it appears from the doco that the RGB channel data is in fact available, and a number of mathematical capabilities.

There are standard ways to convert between RGB and HSL if that is what you are after:

https://en.wikipedia.org/wiki/HSL_and_HSV#To_RGB

Link to comment
Share on other sites

yes but there is no if then possiblity what is needed. if you look carefully itself these formulas you understand. for color space formulas there is docuemnt color faq in internet. and i have evenbook which have some of these conversions and some image processing methods what i cannot do with this program. and i dont have maybe energy code program what does them.

Link to comment
Share on other sites

6 hours ago, MxHeppa said:

no if then possiblity

The "HSL to RGB alternative" provides for conversion in one direction without needing that, but I agree that formulas going the other way are not presented which do not require that.

Built-in functions to convert the colors would be helpful, though even simple conditional functions of some form would make this possible.

 

For example, a function like if(a, b, lt, eq, gt) which returns lt if a < b, eq if a = b, or gt if a > b - even that much would be enough to make this work, if not the most convenient.

 

Maybe as an alternative form, shortening it by one parameter and calling as if(a, b, eq, ne) would return eq if a = b and ne otherwise...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.