Latest Uploads
Rpg Potion Sprites

Pakz

Super Shap ... ration Kit

Andy_A

Platdude Spotting

Jayenkai

Nom nom nom

Jayenkai

Rainbow Trout

Pakz

King Salmon

Pakz

Code Snippets > Generators ( Created 01 December 2016 | Last Edited 01 December 2016)

Grass like image generator by Pakz | No Votes
Modified line function at random pos.
Written in
Other
This turned out quite nice imo.

I created a function that draws a line from a to b. It goes step by step and during these steps sometimes it steps in a random direction (x-+ y+-) thus creating not straight lines. You can select different colors and around the line an outline is created with half the color value of the inner part.

I also created code that checks at a random position in the map and counts the higher range colors. If there are enough around that pos then the color of the original position is turned into white(hightlighting)

In high resolution it looks like the picture below. In lower resolutions it looks different.

Highslide JS


Code is Monkey 2
-->

There are no comments for this entry. -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 579|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Buy Zelda
rockford Mon 00:55
Repetitive Blogging
rskgames Fri 10:04
TinyBlocks
spinal Fri 06:46
Arduboy Owners Club
spinal Fri 02:30
AGameAWeek : 2017 - Part One
Jayenkai Thu 13:11
A New Korg Gadget!
Jayenkai Thu 12:30
SNES Mini?
rychan Thu 07:11
Steampunk Lamp
Jayenkai Wed 06:05
Finishing Off
rockford Tue 08:20
Weather in Games
rychan Tue 07:26
More

Latest Items
Showcase : Quadoban
rskgames Fri 10:11
Blog : My Arduino experience.
steve_ancell Wed 17:02
Showcase : Roguelike Explorer
Pakz Fri 06:59
Showcase : Infinitron
Jayenkai Mon 07:50
News : Newsletter #311
Jayenkai Thu 17:27
Link : Super Shapes Exploration Kit
Andy_A Thu 11:09
Dev-Diary : Sensitive - Arduboy!
rychan Thu 17:27
Snippet : Skylines
steve_ancell Tue 14:25
Dev-Diary : PS2 to N64 Adapter
spinal Sun 10:49
Link : Vector Tutorials/Help page.
Pakz Thu 23:00
Blog : mini project
spinal Sun 10:13
Showcase : Blockman Returns
Jayenkai Fri 03:04
Snippet : Wall Tracing on Random Maps (rpg)
rskgames Wed 22:48
Snippet : Path Following
Pakz Mon 16:25
More

Who's Online
rockford
Mon, at 02:43
spinal
Mon, at 01:55
rskgames
Mon, at 01:13
therevillsgames
Mon, at 00:53
Jayenkai
Sun, at 22:35
Pakz
Sun, at 20:49
Evil Roy Ferguson
Sun, at 19:33
steve_ancell
Sun, at 17:13
9572AD
Sun, at 16:28
shroom_monk
Sun, at 11:52
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.