Sign in to follow this  
Followers 0
TechnoRobbo

Noise Bleacher

4 posts in this topic

Pseudo Greyscale from Pseudo-Random Noise. The plugin takes your color image and de-saturates it by shifting the pixel colors randomly. I included a Span and Offset control to adjust the hue and intensity of the de-saturation,

 

Sorry no video instructions - this ones too easy to use.

 

Under the Effects->Color->Noise Bleacher

 

Bug Fix Version 1,1 Span Zero crash fixed. 1:27 AM Tuesday, June 11, 2013 (UTC)

 

 

Bleacher.png?raw=1

 

Interesting when zoomed:

zoombleach.png?raw=1

 

 

The Code:

 

Hidden Content:
// Submenu: Color
// Name: Noise Bleacher
// Title: Noise Bleacher - v1.1
// Author: TechnoRobbo
// URL: http://www.technorobbo
#region UICode
int Amount1 = 1; // [1,360] Span
int Amount2 = 0; // [0,180] Offset
#endregion






void Render(Surface dst, Surface src, Rectangle rect)
{
    Random rndm = new Random((int)Guid.NewGuid().GetHashCode());
    ColorBgra CP;
    int tmp =0;
    for (int y = rect.Top; y < rect.Bottom; y++)
    {
        for (int x = rect.Left; x < rect.Right; x++)
        {
            CP = src[x,y];
            tmp= rndm.Next() % Amount1;
            HsvColor hsv = HsvColor.FromColor(CP.ToColor());
            int H = (hsv.Hue + tmp + Amount2) % 360; 
            int S = hsv.Saturation; 
            int V = hsv.Value;


            hsv = new HsvColor(H,S,V);


            ColorBgra NP = ColorBgra.FromColor(hsv.ToColor());
            NP.A = CP.A;  


            dst[x,y] = NP;
        }
    }


}
 
 

NoiseBleach.zip

Edited by TechnoRobbo
0

Share this post


Link to post
Share on other sites

Please change the menu to Effects > Color (no S).

 

Edit: Span = 0 crashes :(

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0