It is currently Sat Jun 06, 2026 4:09 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: A script to shift columns of pixels up/down randomly
PostPosted: Sat Jun 06, 2015 3:25 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 205
Attachment:
paint-mess.scm [2.57 KiB]
Downloaded 293 times

I wrote the script above as an aid to creating space scenes, then found it threw up some colourful shapes depending on the base image

If you wish to try it its located at File/Create/Patterns/Paint mess

It was designed to work on horizontal coloured bands with the top and bottom of the image the same colour as the intended background colour

An example with a black background

The first image was created to work on

The second image is after the columns of pixels are moved

The third image is after Polar coordinates are run

If you wish to save both versions you have to make sure the Polar coordinates box is checked, then run and save, next undo three steps in the history dialogue, then flatten and save

I’ve tested the script but I’m sure I won’t have covered all bases, if it does crash I’d be grateful to know

Thanks for looking
Attachment:
default values.jpg
default values.jpg [ 328.16 KiB | Viewed 3161 times ]


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: A script to shift columns of pixels up/down randomly
PostPosted: Sat Jun 06, 2015 8:30 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Thank you Steve it makes a nice explosion (I still need practice)
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: A script to shift columns of pixels up/down randomly
PostPosted: Sat Jun 06, 2015 8:38 pm  (#3) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4469
Location: Canada
Image

_________________
TinT
My GIMP 2.10 plug-in writer Fiverr Gig
Plaid Community Forum
Imageplaid-patterns.com


Top
 Post subject: Re: A script to shift columns of pixels up/down randomly
PostPosted: Sat Jun 06, 2015 9:07 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Fun to use for a Bkg to text
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: A script to shift columns of pixels up/down randomly
PostPosted: Sat Jun 06, 2015 9:47 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Steve you have forgotten to reset the context settings with (gimp-context-push) and (gimp-context-pop) also your flatten command could be an option but is still a great script to play with, this time I used it without flatten to do more to the text
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: A script to shift columns of pixels up/down randomly
PostPosted: Sat Jun 06, 2015 11:55 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Finished playing now :coolthup
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: A script to shift columns of pixels up/down randomly
PostPosted: Sun Jun 07, 2015 5:43 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 205
Graechan wrote:
Steve you have forgotten to reset the context settings with (gimp-context-push) and (gimp-context-pop) also your flatten command could be an option but is still a great script to play with, this time I used it without flatten to do more to the text
[ Image ]

Thanks for the feedback, appreciated

If I’m honest I didn’t forget about push/pop, it was a case of ignorance is bliss :oops: , I hadn’t known of them to be able to use them. As I tend to learn about subjects in a haphazard fashion rather than methodically I don’t always do things in the correct way, and there are gaps in my knowledge that a methodical learner wouldn’t have.

One reason for posting scripts is I value the feedback as it helps me to improve, and so looking into push/pop is top of my gimp to do list.

And so far so good, I was expecting an avalanche of crash reports


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group