Jump to content

lloydo

Members
  • Posts

    42
  • Joined

  • Last visited

Everything posted by lloydo

  1. Hi, Im just wondering. Would you guys use a chalk plugin to adjust images as if drawn in chalk? Please tell me or vote in the poll. (CODELAB BROKEN , WILL CREATE AS SOON AS IT IS FIXED)
  2. 15/10 ncfan51 , i like the firey effect and numbers 5 * !
  3. Hi , ill start it off , lloydo , OMG best name ever 10/10!!! (sarcasm)
  4. nice tut ash , you should become a mod
  5. You totally copied off nelson muntz poster on the simpsons! :evil:
  6. GREAT TUT DUDE , SHOULD BECOME A PLUGIN!!! Hey rick , if you see this , instead of stickying it, make it best tut :wink:
  7. 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...
  8. ok you found out i was editing your pastel source code please dont ban me , please!!
  9. 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?
  10. 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; } } } }
  11. 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?
×
×
  • Create New...