It is currently 10 Jul 2020, 13:38

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Parallel gradients, a script looking for a purpose

Share your Python Fu Scripts/plug-ins for GIMP here
Post Reply
Steve Reid
Script Coder

Parallel gradients, a script looking for a purpose

Post#1 by Steve Reid » 25 Jul 2017, 15:29


I had the idea for this script but no idea of what it could be used for, other than sometimes it gives a pleasing abstract

The script is located "<Image>/Filters/Artistic/Parallel gradients...",
parallel-gradients.zip
(1.29 KiB) Downloaded 67 times
The images below with the values used give an idea of what is going on

If you input minus values, they are set to zero
If you input values larger than the image width or height, the inputs are reset to the maximum image width or height

I've tried to iron out all the errors but can't guarantee it, if the script crashes or you get strange results i'd be grateful to know

It's complicated to describe, but I've tried below, although its probably easier to try it out on an image

As an example with horizontal mode selected

The first line of pixels, selects a vertical column of pixels (width x 1) at your input value on the X axis and copies and pastes it horizontally on layer 1, the 3rd and fourth input values being the boundaries
The second line of pixels, selects a vertical column of pixels (width x 1) at your input value on the X axis and copies and pastes it horizontally on layer 2, the 3rd and fourth input values being the boundaries
A gradient is applied across layer 1 using the 3rd and fourth input values as boundaries

If instead you use vertical mode, you have to think in terms of rows of horizontal pixels rather than columns of vertical pixels
examples.png
examples.png (224.48 KiB) Viewed 724 times
GIMP Learn rocks...
0

Issabella
Script Tester

Post#2 by Issabella » 25 Jul 2017, 16:17


Hi Steve, Thank you so much for your Parallel Gradient Script. It runs without problem. I prepared the image and ran the script.
Here my first result. :thumbsup: :D
Attachments
Parallel Gradient Result_Issa.jpg
Parallel Gradient Result_Issa.jpg (42.03 KiB) Viewed 715 times
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.
0

Steve Reid
Script Coder

Post#3 by Steve Reid » 25 Jul 2017, 18:57


Thank you Issabella :) , your gradient is looking good, and I am glad to see the script worked
GIMP Learn rocks...
0

tim
GL Blogger

Post#4 by tim » 25 Jul 2017, 19:59


Congratulations Steve Reid, now you're Script Coder.
aka Tin
:tree_02:
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         
0

Pat625
Tutorial Creator

Post#5 by Pat625 » 25 Jul 2017, 22:02


Yay!! :gimp_clap: :yay_yay_purple: Another Script Coder. We are really getting into the big time!
1


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 15 guests