lloydo
Members-
Posts
42 -
Joined
-
Last visited
Everything posted by lloydo
-
nice tut ash , you should become a mod
-
my result
-
GREAT TUT DUDE , SHOULD BECOME A PLUGIN!!! Hey rick , if you see this , instead of stickying it, make it best tut :wink:
-
void Render{Surface dst, Surface src, Rectangle rect} { // How big is your box of chalk? double BaseColors = 72; // 1-360, step 1, Default = 72 PdnRegion selectionRegion = EnvironmentParameters.GetSelection{src.Bounds}; Rectangle selection = this.EnvironmentParameters.GetSelection{src.Bounds}.GetBoundsInt{}; ColorBgra CurrentPixel; double Q = 360 / BaseColors; double H = 0,S = 0,V = 0; for(int y = rect.Top; y < rect.Bottom; y++} { for {int x = rect.Left; x < rect.Right; x++} { if {selectionRegion.IsVisible{x, y}} CurrentPixel = src[x,y]; ; {CurrentPixel.R,CurrentPixel.G,CurrentPixel.B,ref H,ref} S,ref V}; {CS1026} H = Q*{double}Math.Round{H/Q}; // Normalize Hue if {S > .15} // Compress Saturation { S = { {0.35*{S-0.15}} / {1.0-0.15} } + 0.15; } {V > 0.05} // Compress Value { V = { {0.15*{V-0.05}} / {1.0-0.05} } + 0.85; } ; else // Near Black Pixels { S = 0; // turn them gray V += 0.75; } EvanHSVtoRGB(H,S,V,ref CurrentPixel.R,ref CurrentPixel.G,ref CurrentPixel.B}; dst[x,y] = CurrentPixel; } } } } Just made more errors Can you correct all the errors then send back to me?
-
void Render(Surface dst, Surface src, Rectangle rect) { // How big is your box of chalk? double BaseColors = 72; // 1-360, step 1, Default = 72 PdnRegion selectionRegion = EnvironmentParameters.GetSelection(src.Bounds); Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); ColorBgra CurrentPixel; double Q = 360 / BaseColors; double H = 0,S = 0,V = 0; for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) ( if (selectionRegion.IsVisible(x, y)) CurrentPixel = src[x,y]; ; (CurrentPixel.R,CurrentPixel.G,CurrentPixel.B,ref H,ref) S,ref V); (CS1026) H = Q*(double)Math.Round(H/Q); // Normalize Hue if (S > .15) // Compress Saturation ( S = ( (0.35*(S-0.15)) / (1.0-0.15) ) + 0.15; ) if (V > 0.05) // Compress Value ( V = ( (0.15*(V-0.05)) / (1.0-0.05) ) + 0.85; ) ; else // Near Black Pixels { S = 0; // turn them gray V += 0.75; } EvanHSVtoRGB(H,S,V,ref CurrentPixel.R,ref CurrentPixel.G,ref CurrentPixel.; dst[x,y] = CurrentPixel; } } } }
-
Conditional Hue/Saturation Effect Available
lloydo replied to evanolds's topic in Plugins - Publishing ONLY!
check out my 2 images with the fade function -
Conditional Hue/Saturation Effect Available
lloydo replied to evanolds's topic in Plugins - Publishing ONLY!
This is what i got. I experimented and managed to get 5 different coulours fading into each other GREAT PLUGIN DUDE!!! I also got this -
Try taking the red eye CODELAB (SOURCE) and changing it a bit and turning into a plugin
-
what i got after folloin the tut great tut :wink:
-
Cant get screenshots , please help!
lloydo replied to lloydo's topic in Paint.NET Discussion and Questions
It shows up as white..... -
Cant get screenshots , please help!
lloydo replied to lloydo's topic in Paint.NET Discussion and Questions
it costs... -
Cant get screenshots , please help!
lloydo replied to lloydo's topic in Paint.NET Discussion and Questions
100 -
Cant get screenshots , please help!
lloydo replied to lloydo's topic in Paint.NET Discussion and Questions
THANK YOU!! -
The Pictorium! Post your created or edited images here!
lloydo replied to aatwo's topic in The Pictorium
How do you save the image of your PDN screen??? -
:?: :?: :?: :?: :?: :?: :?: how do i get screenshots in my posts? the trouble is that i cant get the image of the screen
-
Real Car -> Toy Car conversion.
lloydo replied to cjmcguinness's topic in Distortions and Modifications
GREAT TUT