TechnoRobbo Posted June 11, 2013 Share Posted June 11, 2013 (edited) A new twist on the Twist. Rotate your image in slices. (The Original twist makes the image unrecognizable.) Video instructions - http://youtu.be/Q6fPxBzQ4w8 This image was done with a round selection. (Mona's one Twisted sister.) Distort -> Layer Cake Bug Fix -Version 1.1 Fixes Zero Rotation Issue 10:38 AM Wednesday, June 12, 2013 (UTC) The Code: Hidden Content: // Submenu: Distort // Name: Layer Cake // Title: Layer Cake - v1.1 // Author: TechnoRobbo // URL: http://www.technorobbo #region UICode double Amount1 = 0;//[-10,10]Rotation double Amount2 = 5;//[1,30]Slices #endregion void Render(Surface dst, Surface src, Rectangle rect) { Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); int CenterX = ((selection.Right - selection.Left) / 2)+selection.Left; int CenterY = ((selection.Bottom - selection.Top) / 2)+selection.Top; double radX = (selection.Right - selection.Left) / 2; double radY = (selection.Bottom - selection.Top) / 2; double offrads = 0; double rads = 0; double slices = 0; int newx = 0; int newy = 0; double maxrad = Math.Sqrt(radX * radX + radY * radY); ColorBgra CP; rads= Math.PI * (Amount1 +.001); for (int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { slices = Math.Sqrt((x-CenterX) * (x-CenterX) + (y-CenterY)* (y-CenterY)) * rads / maxrad; offrads = Math.Truncate(slices / (rads / Amount2)) * (rads / Amount2); newx=CenterX + (int)(Math.Cos(offrads) * (x-CenterX) + Math.Sin(offrads) * (y-CenterY)); newy=CenterY + (int)(Math.Cos(offrads) * (y-CenterY) - Math.Sin(offrads) * (x-CenterX)); CP = src.GetBilinearSampleWrapped(newx,newy); dst[x,y] = CP; } } } Layer Cake.zip Edited September 19, 2015 by TechnoRobbo 1 Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
doughty Posted June 11, 2013 Share Posted June 11, 2013 (edited) Great plug-in. Played all morning, I think I'll go eat breakfast now. Nice if it had an icon. Edited June 11, 2013 by doughty Quote Link to comment Share on other sites More sharing options...
sashwilko Posted June 11, 2013 Share Posted June 11, 2013 My result after cutting and pasting individual slices on to separate layers, then adding drop shadow on each layer. Great plugin with interesting uses. 1 Quote Link to comment Share on other sites More sharing options...
Daniels Posted June 12, 2013 Share Posted June 12, 2013 (edited) Doughty: He should use the icon Looks like Sasha and I had similar ideas with the drop shadow Edited June 12, 2013 by Daniels 1 Quote Logo/Banner Competition My Gallery Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted June 12, 2013 Share Posted June 12, 2013 Nice effect! Any number of Slices + Rotation: 0.00 and I get a completely filled layer in exactly one hue. I anticipated getting a copy of the original (with zero rotation). Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
nitenurse79 Posted June 12, 2013 Share Posted June 12, 2013 By using a gold texture and also some cutting/pasting to layers I used rotate/zoom and trial to create a nice base for a trophy or lamp. Nice examples here and some creative uses Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted June 12, 2013 Author Share Posted June 12, 2013 Ego - zero rotation bug fixed and uploaded. I gotta handed to the creativity of the members. Really nice work. Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted June 13, 2013 Share Posted June 13, 2013 ^ Well done that man! Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
pyrochild Posted June 13, 2013 Share Posted June 13, 2013 You make weird plugins. I like it! 1 Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
SAND33P Posted July 14, 2014 Share Posted July 14, 2014 This is magical, i have actually been wanting to request this Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.