Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411419 Posts in 69363 Topics- by 58416 Members - Latest Member: timothy feriandy

April 17, 2024, 09:53:21 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperArt (Moderator: JWK5)Efficient Way to make Programmer Art.
Pages: [1]
Print
Author Topic: Efficient Way to make Programmer Art.  (Read 1170 times)
Trash_Empire
Level 0
***



View Profile
« on: October 01, 2014, 01:49:44 PM »

I am a programmer. I prefer to make programmer art, until I have to make non-hardcoded graphics. However, I do not know how to create and export hardcoded graphics. Is there a way to hardcode graphics in like python or something, and then export it to a png or something. Is there a good library for this? Some guidance would be well appreciated. Thanks, Devlizard.
Logged
Mopee
Level 0
*


Tadoumn


View Profile
« Reply #1 on: October 05, 2014, 05:30:46 AM »

Hi,

There is a programming language called processing that you can try for this. For what you want to do it's quite powerfull.

http://www.processing.org/

Share what you do with it  Smiley
Logged
Dacke
Level 10
*****



View Profile
« Reply #2 on: October 05, 2014, 05:52:16 AM »

You want to create an image programmatically and save it to disk? You can do it with pretty much any language. If you have a preference for Python, here is one of many ways to do it:

Code:
import Image
import ImageDraw

im = Image.new("RGB", (64, 64), "#ddd")
draw = ImageDraw.Draw(im)
draw.line(((10, 10), (50, 30), (10, 40), (10, 10)), fill="red")

im.save("sprite.png")


http://infohost.nmt.edu/tcc/help/pubs/pil/image-draw.html
Logged

programming • free software
animal liberation • veganism
anarcho-communism • intersectionality • feminism
ETG
Level 0
***



View Profile
« Reply #3 on: October 06, 2014, 10:34:43 AM »

Photoshop has a few tools that could help.

You can do macros to automate things.
The slice tool can cut an image up to be exported as smaller separate images.
Adjustment layers and filters could be a quick and dirty way to make identifiably different copies of assets you do have.

You could make a sprite sheet of, say, all your equipment, slice the image up into individual pieces, throw on a color adjustment layer to make a green, red, blue, yellow version, then a filter on top of that to distort the image, then automate the exporting to make every different combination of equipment and alterations all at once.
Logged
Trash_Empire
Level 0
***



View Profile
« Reply #4 on: October 08, 2014, 04:07:47 PM »

I have been using a fork of PIL for a while called Pillow. It has been exactly what I need. Thanks, Devlizard.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic