Remap_Hues_xy (Based on G'MIC's curves)

  • crabshank
  • Topic Author
More
5 years 5 months ago - 3 years 2 months ago #1 by crabshank Remap_Hues_xy (Based on G'MIC's curves) was created by crabshank
This is a port of the hlsl code I made which lets you map an input colour (HSV or RGB) to an output colour and interpolates linearly between them, in the same way that G'MIC's curves function does.

Download  here
Last edit: 3 years 2 months ago by crabshank. Reason: Urgent fixes
The following user(s) said Thank You: jas01, Deathmedic, WalterDasTrevas

Please Log in or Create an account to join the conversation.

  • crabshank
  • Topic Author
More
4 years 8 months ago - 3 years 7 months ago #2 by crabshank Replied by crabshank on topic Colour remapper (Based on G'MIC's curves)
<Removed as obsolete>
Last edit: 3 years 7 months ago by crabshank. Reason: Obsolete
The following user(s) said Thank You: jas01

Please Log in or Create an account to join the conversation.

  • Deathmedic
More
4 years 8 months ago #3 by Deathmedic Replied by Deathmedic on topic Colour remapper (Based on G'MIC's curves)
This looks really good but as there isn't any ui based controls for the colour it's quite hard to figure out what to alter.

Please Log in or Create an account to join the conversation.

  • crabshank
  • Topic Author
More
4 years 8 months ago - 3 years 7 months ago #4 by crabshank Replied by crabshank on topic Colour remapper (Based on G'MIC's curves)
Example:

Default:
	#define hueRotate 0
	float rotate_hues =0;  //-360 to 360


	#define hue 0
		#define hue_points 3
		float2 h[ hue_points] =
	{
		float2(0, 0),
		float2(180,180),
		float2(360, 360)
	};

Adjusted:
	float rotate_hues =4; //Rotate hues by 4 degrees (clockwise) before rempping  //-360 to 360

		#define hue_points 4

		float2 h[ hue_points] =
	{
		float2(0, 0),
		float2(180,182),
		float2(212,200),
		float2(360, 360)
	};

This specfies (from, to): (0,0), (180,182), (212,200) and (360,360) as points and linearly interpolates between them, after rotating the hue by 4 degrees (useful for remapping red and pink hues that are on either side of 0/360deg).
Last edit: 3 years 7 months ago by crabshank. Reason: Updated

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.