Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

CodImage

Create images using your words! · By SynKrown Games

Tutorials Sticky Locked

A topic by SynKrown Games created Apr 15, 2017 Views: 204
This topic is locked
Viewing posts 1 to 1
Developer (2 edits) (+2)

Getting Started

Right, so you have downloaded CodeImage, installed it, and have it open in front of you.

First thing you should do is look at the top menu bar. Hover over each item to see what it does. You will notice the standard file save/loading etc. You will also see there is a Pencil icon. That will compile your code, and produce the image on the left.

There is a list on the bottom left of the window. That list shows all of the usable commands to create your image. Click on a command to view it's make up in the panel under the TextBox, so you know how to use it, or, double click on the command to add it to the TextBox.

Now for our first bit of code. We want to make an image with the size of 200x200, and draw a red line from the top left, to the bottom right.


;Create Width, Height : Initialize the image with the given width and height

Create 200, 200

;Color ColorName / A, R, G, B / R, G, B : Set the color of what is drawn on the image next *Default WHITE*

Color Red

;Line X1, Y1, X2, Y2 : Draw a line from point A to point B

Line 0, 0, Width, Height


Click on the Pencil button to compile the image.


That's it for the first Tutorial. Stay tuned for more!