Jump to content

Illnab1024

Members
  • Posts

    1,178
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Illnab1024

  1. Bob, my average posts per day is 2.

    By the way, I think seniority counts for something (that means CMD and BoltBait have us; Bob, you're better than me by a month and French should rule the world, if it weren't for a bad military problem...; but, I beat you guys, usedHonda, The_Lionhearted, and others... I remember when y'all were noobs!)

    Now that we have successfully jacked and derailed this entire thread, let's start looking through kaleidoscopes again, agreed?

    "lock(dstArgs.Graphics)" is the same trick BoltBait used for those arrows, rather nice turning the canvas into GDI's space.

  2. Actually, here was what I was thinking:

    create a new layer atop a damaged image.

    fill with black

    set opacity to 128

    draw white lines at about 8-10px width along the scars on the image

    blur at about 10px

    flatten; save as mask.png; undo to beginning

    duplicate layer

    use erode/dilate at intensity of ~5px, erode or dilate depending on what covers the scars

    apply alpha mask plugin with mask.png as the image

    adjust as necessary

  3. ... and i went to retrieve it ...

    What do you mean? Plugins are automatically in the program if you install them correctly - Effect plugins in the effect menu, and filetype plugins incorporated automatically into the file open/save dialog (and the other loading/saving functions of PdN)

  4. Ah... Yeah, well I guess you can't do much if you're using that, then... But if you want to remake it, just take any triangle as your source pixels, and then your destination pixels will draw from that triangle, with a rotational offset depending on the triangle the destination is in, and also possibly a mirror offset (along that "normal" axis), also depending on the triangle the destination is in.

  5. 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:

    1. to reproduce the Work, to incorporate the Work into one or more Collective Works, and to reproduce the Work as incorporated in the Collective Works;

    And, with the other notes on that page, it looks like you could "reproduce" the work in vector format, as long as you attribute it to Rick completely, and abide by the other terms of the license.

    (Yes, I did just read through a long license to be able to say "No" to CMD)

  6. If you reflect it once along any of those axes and then begin to rotate that bigger piece, you should have it.

    Thus, every other piece is reflected along its own normal axis*; so, the destination pixel will be drawn from the point on the other side of that normal axis at the same distance from the axis.

    Questions?

    *That normal axis would be the one that bisects the triangle, as so:

    normaxwa5.jpg

    The axis runs from A to D, where D is the midpoint of line BC.

  7. 1) Add a new layer.

    2) Run this codelab script.

    void Render(Surface dst, Surface src, Rectangle rect)
    {
    
               PdnRegion selectionRegion = EnvironmentParameters.GetSelection(src.Bounds);
               Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt();
               int GridSizeX = selection.Width/8;
               int GridSizeY = selection.Height/6;
               ColorBgra CurrentPixel;
               ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor;
               ColorBgra SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor;
               bool Odd = false;
                   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];
                                       Odd = true;
                                       if (((x / GridSizeX) % 2) == 0) Odd = false;
                                       if (((y / GridSizeY) % 2) == 0) Odd = !Odd;
                                       if (Odd)
                                       {
                                           CurrentPixel.R = (byte)PrimaryColor.R;
                                           CurrentPixel.G = (byte)PrimaryColor.G;
                                           CurrentPixel.B = (byte)PrimaryColor.B;
                                           CurrentPixel.A = (byte)PrimaryColor.A;
                                       }
                                       else
                                       {
    
                                               CurrentPixel.R = (byte)SecondaryColor.R;
                                               CurrentPixel.G = (byte)SecondaryColor.G;
                                               CurrentPixel.B = (byte)SecondaryColor.B;
                                               CurrentPixel.A = (byte)SecondaryColor.A;
    
                                       }
                               dst[x, y] = CurrentPixel;
                           }
                       }
                   }
    }
    
    

    3) Use the magic wand to draw a selection for one of the squares.

    4) Crop to selection.

    5) Delete the top layer.

    6) File > Save as... to the filename of your choice.

    7) Undo until the end of step 2 and repeat the process for the next rectangle - repeat until finished

×
×
  • Create New...