Objects And Coloring

Background color
Font
Font size
Line height

To create a rectangle simply put:

rectangle(?,?,?,?);

Every line of code in DS ends with a semicolon. The question marks represent in order: X,Y,Width, and Height of object. Some only have X and Y. Each goes in the order listed before, no matter how many question marks are listed. Now, here's a circle:

circle(?,?,?,?);

Easy, see? Now, here's how to color those objects:

paint(?,?,?);
rect(?,?,?,?);

Paint question marks work differently. The first is how much red from 0 to 255, next is green, next is blue. Always put paint before the object, then put another paint if you want a different color for the next object. This technique works for all shapes unless said otherwise. Now, how, you say, would you make the whole screen a certain color? Here's how:

paintbackground(?,?,?);

Like before, question marks have same value as paint, just on a larger scale. Now, the next object has a set size, and color. It's the dot function. The two question marks are the X and Y positions. Here's how to do it:

dot(?,?);

Simple, right? Let's move on. The next code has a set color and cannot be changed. Line:

line(?,?,?,?);

The next one is an image. These images are preset and can only choose the objects I insert:

image(?,x,y,width,height);

Well, that's it! Go to next chapter!

You are reading the story above: TeenFic.Net