Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,501,273
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-29-24 02:08 PM
Guest: Register | Login

0 users currently in Modern Art | 1 guest

Main - Modern Art - Squares New thread | New reply

Pages: 1 2

Xkeeper
Posted on 05-08-07 08:32 PM Link | Quote | ID: 33914


Level: 105

Posts: 1600/2846
EXP: 12031245
Next: 231015

Since: 02-19-07

Last post: 6063 days
Last view: 2800 days


Just a nifty thing I made in PHP that (nearly) seamlessly tiles (It doesn't always work right)

It makes nifty patterns, at least.

____________________
I dealt with it.

Hiryuu
Posted on 05-08-07 08:51 PM Link | Quote | ID: 33920

Done.
Level: 79

Posts: 452/1471
EXP: 4470676
Next: 108791

Since: 02-19-07
From: ???

Last post: 6089 days
Last view: 6082 days
You've been working on that for too long that I think it's turning your brain to mush. :\

It'd be nice if you had a way to animate it seamlessly as well, if gradual.

Shiryu
Posted on 05-08-07 08:51 PM Link | Quote | ID: 33921


Bloober
Level: 47

Posts: 281/437
EXP: 723868
Next: 42335

Since: 02-19-07

Last post: 6123 days
Last view: 5994 days
so, what are our odds of getting every square of the same color? or is it programmed in a way it can't happen?

____________________
Generated a 991044 foot, 10.4-inch twiggy catgirl with orange hair, who weighs 315,239,939,065.9 pounds and has soft A-cup breasts, and it only took 0.00031 seconds.

Xkeeper
Posted on 05-08-07 08:52 PM Link | Quote | ID: 33922


Level: 105

Posts: 1602/2846
EXP: 12031245
Next: 231015

Since: 02-19-07

Last post: 6063 days
Last view: 2800 days
I haven't touched it for a few weeks (since I made it, even). I was just posting it

I'd work on something more fufilling (like MiniSM) if I had a work area and not a bed.

____________________
I dealt with it.

Hiryuu
Posted on 05-08-07 08:57 PM Link | Quote | ID: 33923

Done.
Level: 79

Posts: 453/1471
EXP: 4470676
Next: 108791

Since: 02-19-07
From: ???

Last post: 6089 days
Last view: 6082 days
Can you make it work on 176x220?

There's a reason.

Xkeeper
Posted on 05-08-07 09:07 PM Link | Quote | ID: 33924


Level: 105

Posts: 1603/2846
EXP: 12031245
Next: 231015

Since: 02-19-07

Last post: 6063 days
Last view: 2800 days


xsz: x square size - 1 (i.e., size without right and bottom border)
ysz: y square size - 1
xis: x image size (rounded down to fit even number of xsz)
yis: y image size
d: density (i.e., "draw this many squares")

____________________
I dealt with it.

Hiryuu
Posted on 05-08-07 09:50 PM Link | Quote | ID: 33940

Done.
Level: 79

Posts: 454/1471
EXP: 4470676
Next: 108791

Since: 02-19-07
From: ???

Last post: 6089 days
Last view: 6082 days
What about color?

Xkeeper
Posted on 05-08-07 09:51 PM Link | Quote | ID: 33941


Level: 105

Posts: 1604/2846
EXP: 12031245
Next: 231015

Since: 02-19-07

Last post: 6063 days
Last view: 2800 days
Do you have a particular request?

(I think i used some rather nonsensical method of generating the colors it used (like, changing from cetrain formulas of "$x * 0.7" or whatever to other ones midway through) and I'm just curious)

____________________
I dealt with it.

Hiryuu
Posted on 05-08-07 09:56 PM (rev. 2 of 05-08-07 09:57 PM) Link | Quote | ID: 33942

Done.
Level: 79

Posts: 455/1471
EXP: 4470676
Next: 108791

Since: 02-19-07
From: ???

Last post: 6089 days
Last view: 6082 days
It looks like it's using just a set few colors. I was wondering if there was any way to change said colors.

I've seen similar things in Starfish where they use themes for the colors but generate random images like this one.

Xkeeper
Posted on 05-08-07 09:57 PM (rev. 2 of 05-08-07 09:58 PM) Link | Quote | ID: 33943


Level: 105

Posts: 1605/2846
EXP: 12031245
Next: 231015

Since: 02-19-07

Last post: 6063 days
Last view: 2800 days
It uses the same colors right now (based on a quick formula, just 50 seperate colors)

I'll try fidding with it more now, expect an "rc", "bc" and "gc"


for ($i = 0; $i < 50; $i++) {
   $m = $i / 50 * 127;
   $mr = mt_rand(1, 3);
   $mg = mt_rand(1, 3);
   $mb = mt_rand(2, 4);
   $col[$i][0] = imagecolorallocatealpha($image, $m / $mr + 10, $m / $mg + 10, $m/$mb + 127, round(63 - ($m / 4) + 50));
   $col[$i][1] = imagecolorallocatealpha($image, $m / $mr + 20, $m / $mg + 20, $m/$mb + 127, round(63 - ($m / 4) + 30));
}



Yeah this'll be fun.

____________________
I dealt with it.

Hiryuu
Posted on 05-08-07 09:58 PM Link | Quote | ID: 33945

Done.
Level: 79

Posts: 456/1471
EXP: 4470676
Next: 108791

Since: 02-19-07
From: ???

Last post: 6089 days
Last view: 6082 days
I'd figure it'd use something like a range between colors or something. :\

Just using a set hue's gonna get one color.

Xkeeper
Posted on 05-08-07 10:13 PM (rev. 2 of 05-08-07 10:14 PM) Link | Quote | ID: 33950


Level: 105

Posts: 1606/2846
EXP: 12031245
Next: 231015

Since: 02-19-07

Last post: 6063 days
Last view: 2800 days
Now use:

{r,g,b}{1,2,b} = (value)

r,g,b: color

1: "divisor 1", lower = more influence, higher = less noticable; general range 1-10
2: "divisor 2" (divisor will be random between these values)
b: bonus: color will always have this added in to the base value


Just experiment.


Defaults (auto-used if not specified):

r1, g1: 2
r2, g2: 4
b1: 1
b2: 3

rb: 10
gb: 10
bb: 100

____________________
I dealt with it.

Koitenshin -∞
Posted on 05-08-07 10:40 PM Link | Quote | ID: 33963

Happy Hour!
Level: 81

Posts: 998/1556
EXP: 4850529
Next: 142320

Since: 03-25-07

Last post: 2679 days
Last view: 2677 days
How about something a little less girly as far as colors go. Anything not pastel for example.

____________________
Quiz Result Provided By: theOtaku.com.
What FF7: Advent Children Character Are You?

Xkeeper
Posted on 05-08-07 10:40 PM (rev. 2 of 05-08-07 10:40 PM) Link | Quote | ID: 33964


Level: 105

Posts: 1610/2846
EXP: 12031245
Next: 231015

Since: 02-19-07

Last post: 6063 days
Last view: 2800 days
Posted by Koitenshin +∞
How about something a little less girly as far as colors go.
Come here so I can strangle you.

____________________
I dealt with it.

Koitenshin -∞
Posted on 05-08-07 10:42 PM Link | Quote | ID: 33966

Happy Hour!
Level: 81

Posts: 999/1556
EXP: 4850529
Next: 142320

Since: 03-25-07

Last post: 2679 days
Last view: 2677 days
No because the moment I step into the IRC channel it will say "booted by laptuna (GENERIC KICK MESSAGE)"

____________________
Quiz Result Provided By: theOtaku.com.
What FF7: Advent Children Character Are You?

Xkeeper
Posted on 05-08-07 10:49 PM Link | Quote | ID: 33969


Level: 105

Posts: 1611/2846
EXP: 12031245
Next: 231015

Since: 02-19-07

Last post: 6063 days
Last view: 2800 days
Really, though, ifi you think blue is girly,there is something wrong with you

____________________
I dealt with it.

Koitenshin -∞
Posted on 05-08-07 10:52 PM Link | Quote | ID: 33971

Happy Hour!
Level: 81

Posts: 1001/1556
EXP: 4850529
Next: 142320

Since: 03-25-07

Last post: 2679 days
Last view: 2677 days
I see a majority of purple here. Not blue. Perhaps toss in some darker colors like maroon and black. Yes I am morbid, sue me.

____________________
Quiz Result Provided By: theOtaku.com.
What FF7: Advent Children Character Are You?

Hiryuu
Posted on 05-09-07 12:17 AM Link | Quote | ID: 33996

Done.
Level: 79

Posts: 457/1471
EXP: 4470676
Next: 108791

Since: 02-19-07
From: ???

Last post: 6089 days
Last view: 6082 days
BLARGH I NEED CADMIUM RED HURRR

Xkeeper
Posted on 05-09-07 12:37 AM Link | Quote | ID: 34004


Level: 105

Posts: 1612/2846
EXP: 12031245
Next: 231015

Since: 02-19-07

Last post: 6063 days
Last view: 2800 days


The "purple" is just from white + blue, there's very little red added at all

____________________
I dealt with it.

Tyty
Posted on 05-09-07 12:43 AM Link | Quote | ID: 34006


Vire
Jizz Danmaku
Level: 77

Posts: 55/1381
EXP: 4047038
Next: 144091

Since: 04-20-07
From: Canada

Last post: 4450 days
Last view: 3722 days
Thats awesome, I like how it's always random, I could pull off the effect in photoshop, but it would never be as cool as this, randomness is awesome, plus you did this with PHP!

____________________
Pages: 1 2


Main - Modern Art - Squares New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.028 seconds. (322KB of memory used)
MySQL - queries: 42, rows: 70/71, time: 0.015 seconds.