Jump to content


Photo

Random lines Generator (ymd:100725)


20 replies to this topic

#1 MadJik

MadJik
  • Members
  • 2,428 posts
  • LocationLille;France
  • Reputation:21

Posted 07 January 2008 - 08:18 PM

Random lines Effect Plugin
Posted Image

What's this?
This plugin is added to the menu Effects, submenu Render.
You should use it to create/add lines to your images.

Download the DLL
Plugin Random lines.dll
Posted ImageHere is the DLLPosted Image

The source is available with the plugins package!
http://forums.getpai...?showtopic=7186

How to install?
Close Paint.net
Unzip and place the DLL in your Effect folder usually: C:/Program Files/Paint.NET/Effects

The User interface
Posted Image
Quantity of lines: set the needed quantity from 1 to 1000. The number of lines could be different as sometimes the lines are overwritting themselves...

Thickness of the lines (max.): set the brushwidth to use to draw the lines. In Aliased mode, if the size is 1, the line could be disrupted (Not a bug :roll:, but Microsoft line tool issue...).

Thickness of the lines (min.; 0 for fixed): set this value greater than zero to have a variable thickness (between min and max slider). Zero is used for fix thickness.

Color mode: choose a drawing mode between:
...Primary color: use only primary color.
...Secondary color: use only Secondary color.
...Random Primary/Secondary colors: use randomly primary or secondary color.
...Random colors: take a random value for each red/green/blue chanel.
...Random Primary color Gradient: take a random value from the Primary color family.
...Random Secondary color Gradient: take a random value from the Secondary color family.
...Random Primary/Secondary color Gradient: take a random value from the Primary or Secondary color family.

Options: check the option(s) you need:
...Random Alpha chanel:
checked: each line is drawn with a randow transparency (Alpha chanel).
unchecked: Transparency is taken from Primary/Secondary color.

...Clamp lines to the borders:
checked: each line is drawn across the image from a size to another size.
unchecked: start/end points of the lines could be any pixel of the image.

...Continuous lines:
checked: each new line starts where the previous ends.
unchecked: each line starts/ends regardless the others.

...Anti-Aliasing:
You should check this with Thickness amount of 1...

Reseed: press this button to run the effect with another random reference...

Some examples:
Default values:
Posted Image Posted Image


Clamp:Off
Posted Image Posted Image


Clamp:Off, Continuous:On
Posted Image Posted Image


Random thickness, random colors with alpha
Posted Image Posted Image

-Curves
Posted Image
  • 0

#2 barkbark00

barkbark00
  • Members
  • 3,336 posts
  • Reputation:3

Posted 07 January 2008 - 08:36 PM

Cool plugin!

With the line thickness set to "random", can you have the thickness slider set the max?

Or...can you have a min/max sliders for the random functionality of the line thickness?
  • 0
Posted Image
Take responsibility for your own intelligence. ;) -Rick Brewster

#3 salu

salu
  • Members
  • 1,058 posts
  • Locationan Unknown State of Animals
  • Reputation:0

Posted 07 January 2008 - 08:52 PM

sweet!
  • 0

#4 thehamster

thehamster
  • Members
  • 258 posts
  • LocationSarasota, Florida
  • Reputation:0

Posted 07 January 2008 - 09:03 PM

Cool.

Posted Image
  • 0

#5 MiguelPereira

MiguelPereira
  • Members
  • 821 posts
  • LocationPortugal
  • Reputation:1

Posted 07 January 2008 - 09:18 PM

niiiice madjik Good work man
  • 0

#6 david.atwell

david.atwell

    2013 Real Estate Award Winner

  • Moderators
  • 1,685 posts
  • LocationIndianapolis, IN (39°46′5.88″N 86°9′29.52″W)
  • Reputation:186

Posted 07 January 2008 - 09:39 PM

Awesome! No more "draw a bunch of lines" in tuts. :-)
  • 1

stargatesig.png

The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.
Amy: But how did it end up in there?
The Doctor: You know fairy tales. A good wizard tricked it.
River Song: I hate good wizards in fairy tales; they always turn out to be him.


#7 MiguelPereira

MiguelPereira
  • Members
  • 821 posts
  • LocationPortugal
  • Reputation:1

Posted 07 January 2008 - 10:10 PM

Awesome! No more "draw a bunch of lines" in tuts. :-)


nah neewbs will always do that
  • 0

#8 david.atwell

david.atwell

    2013 Real Estate Award Winner

  • Moderators
  • 1,685 posts
  • LocationIndianapolis, IN (39°46′5.88″N 86°9′29.52″W)
  • Reputation:186

Posted 07 January 2008 - 10:26 PM

I can always hope. :-)

Anyway, it's still an awesome plugin.
  • 0

stargatesig.png

The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.
Amy: But how did it end up in there?
The Doctor: You know fairy tales. A good wizard tricked it.
River Song: I hate good wizards in fairy tales; they always turn out to be him.


#9 pyrochild

pyrochild
  • Administrators
  • 11,486 posts
  • LocationColorado
  • Reputation:202

Posted 07 January 2008 - 10:56 PM

Neat plugin. A couple nitpicky details, though: what is with the "Off:no, On:yes" nonsense on your checkboxes? Off always means no, and vice-versa, no need, really, to add that text there. It just adds clutter and makes things look unprofessional, and occasionally can cause confusion.

The "Thickness is: Off:fixed, On:random" checkbox is your worst culprit, and the wording is not at all intuitive. Less intuitive nearly always equates to more (even if only a couple extra seconds) time spent figuring out how to use that particular feature, and again, sometimes, confusion. You don't want to confuse your users, do you? ;)
It would be much more better (yes, much more better), with something like "Random Thickness"
Please don't confuse these comments with just being a me complaining about stuff because I'm jealous of your mad coding skillz (which I am :D ), but rather as constructive criticism that will help your plugins reach an even higher standard than the already impressive one that they are at now. Have a drink :mtdew:

Anyhoo, it's quite fun to play with, even if I haven't made anything remotely resembling "art" with it yet ;)
  • 0
xZYt6wl.png
ambigram signature by Kemaru

[I write plugins and stuff]

If you like a post, upvote it!

#10 Blooper

Blooper
  • Members
  • 2,102 posts
  • Reputation:0

Posted 07 January 2008 - 11:30 PM

Thanks again! Updating the tutorial to this plugin.
  • 0

#11 The_Lionhearted

The_Lionhearted
  • Members
  • 2,613 posts
  • LocationSpringfield, MO
  • Reputation:3

Posted 08 January 2008 - 12:39 AM

I echo pyrochild's sentiments. Otherwise, awesome! :D
  • 0

#12 vostok7

vostok7
  • Members
  • 77 posts
  • LocationAustralia
  • Reputation:0

Posted 08 January 2008 - 01:14 AM

Great plugin Madjik! I will never have to waste time drawing random lines ever again :D
  • 0
Posted Image

#13 MadJik

MadJik
  • Members
  • 2,428 posts
  • LocationLille;France
  • Reputation:21

Posted 08 January 2008 - 05:19 AM

@All: thanks...
@pyrochild: I appreciate your remarks as my english could show some lake of good sense. I will change the UI labels...
  • 0

#14 The_Lionhearted

The_Lionhearted
  • Members
  • 2,613 posts
  • LocationSpringfield, MO
  • Reputation:3

Posted 08 January 2008 - 05:21 AM

@All: thanks...
@pyrochild: I appreciate your remarks as my english could show some lake of good sense. I will change the UI labels...

MadJik...your English makes me smile. A lot. "lake" of good sense...? Brilliant! :D
  • 0

#15 pyrochild

pyrochild
  • Administrators
  • 11,486 posts
  • LocationColorado
  • Reputation:202

Posted 08 January 2008 - 05:33 AM

@All: thanks...
@pyrochild: I appreciate your remarks as my english could show some lake of good sense. I will change the UI labels...

MadJik...your English makes me smile. A lot. "lake" of good sense...? Brilliant! :D

I wish more of us could have a lake of good sense :D
  • 0
xZYt6wl.png
ambigram signature by Kemaru

[I write plugins and stuff]

If you like a post, upvote it!

#16 Ash

Ash

    Former Moderator

  • Members
  • 6,381 posts
  • Locationhttp://tinyurl.com/6kqz9v
  • Reputation:7

Posted 08 January 2008 - 08:38 AM

Cool plugin, Thanks :)
  • 0

Posted Image
All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ]


#17 MadJik

MadJik
  • Members
  • 2,428 posts
  • LocationLille;France
  • Reputation:21

Posted 08 January 2008 - 08:47 AM

You should read "my English may lack common sense."...
:lol:
  • 0

#18 Ash

Ash

    Former Moderator

  • Members
  • 6,381 posts
  • Locationhttp://tinyurl.com/6kqz9v
  • Reputation:7

Posted 08 January 2008 - 08:49 AM

You should read "my English may lack common sense."...
:lol:

I did :D
English or not, it's still a cool plugin :)
  • 0

Posted Image
All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ]


#19 MadJik

MadJik
  • Members
  • 2,428 posts
  • LocationLille;France
  • Reputation:21

Posted 08 January 2008 - 11:33 AM

Updated...see the first post.
(don't forget to clear your cache eventually to be sure to have the latest zip file)
  • 0

#20 MadJik

MadJik
  • Members
  • 2,428 posts
  • LocationLille;France
  • Reputation:21

Posted 09 February 2008 - 09:03 AM

Update:
Added curves...
Posted Image
  • 0