Jump to content

lloydo

Members
  • Posts

    42
  • Joined

  • Last visited

Everything posted by lloydo

  1. nice tut ash , you should become a mod
  2. GREAT TUT DUDE , SHOULD BECOME A PLUGIN!!! Hey rick , if you see this , instead of stickying it, make it best tut :wink:
  3. Ok the code is now perfect thanks to madjik ( thanks dude! ) the only thing is that access to my effects folder is denied and im on my administrator account...
  4. ok you found out i was editing your pastel source code please dont ban me , please!!
  5. 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?
  6. 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; } } } }
  7. I don't understand your question. Could you be more specific? The "end" of what, exactly? What error are you seeing? type or namespace definition, or end of file expected (CS1002)Do you know what this is?
  8. Hi , can anyone take the pastel plugin and change it into a chalk plugin which makes it look like images were drawn in chalk , bye! :wink:
  9. 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
  10. Try taking the red eye CODELAB (SOURCE) and changing it a bit and turning into a plugin
  11. what i got after folloin the tut great tut :wink:
  12. :?: :?: :?: :?: :?: :?: :?: how do i get screenshots in my posts? the trouble is that i cant get the image of the screen
×
×
  • Create New...