Difference between revisions of "Reference"

From Gamebuino Wiki
Jump to: navigation, search
(backlight)
(display)
Line 83: Line 83:
 
General :
 
General :
 
<code>
 
<code>
* [[gb.display.setContrast]]()
+
* [[gb.display.setContrast]](50 to 70)
 
* [[gb.display.clear]]()
 
* [[gb.display.clear]]()
 
* [[gb.display.update]]()
 
* [[gb.display.update]]()
* [[gb.display.fillScreen]]()
+
* [[gb.display.fillScreen]](color)
* [[gb.display.persistance]]
+
* [[gb.display.persistance]] = true/false
 +
* [[gb.setColor]](color, ''background'')
 
</code>
 
</code>
  
 
Pixels :
 
Pixels :
 
<code>
 
<code>
* [[gb.display.drawPixel]]()
+
* [[gb.display.drawPixel]](x, y)
* [[gb.display.getPixel]]()
+
* [[gb.display.getPixel]](x, y)
 
</code>
 
</code>
  
 
Lines :
 
Lines :
 
<code>
 
<code>
* [[gb.display.drawLine]]()
+
* [[gb.display.drawLine]](x0, y0, x1, y1)
* [[gb.display.drawFastVLine]]()
+
* [[gb.display.drawFastVLine]](x, y, h)
* [[gb.display.drawFastHLine]]()
+
* [[gb.display.drawFastHLine]](x, y, w)
 
</code>
 
</code>
  
 
Rectangles :
 
Rectangles :
 
<code>
 
<code>
* [[gb.display.drawRect]]()
+
* [[gb.display.drawRect]](x, y, w, h)
* [[gb.display.fillRect]]()
+
* [[gb.display.fillRect]](x, y, w, h)
* [[gb.display.drawRoundRect]]()
+
* [[gb.display.drawRoundRect]](x, y, w, h, r)
* [[gb.display.fillRoundRect]]()
+
* [[gb.display.fillRoundRect]](x, y, w, h, r)
 
</code>
 
</code>
  
 
Circles :
 
Circles :
 
<code>
 
<code>
* [[gb.display.drawCircle]]()
+
* [[gb.display.drawCircle]](x, y, r)
* [[gb.display.drawCircleHelper]]()
+
* [[gb.display.fillCircle]](x, y, r)
* [[gb.display.fillCircle]]()
+
* [[gb.display.drawCircleHelper]](x, y, r, corner)
* [[gb.display.fillCircleHelper]]()
+
* [[gb.display.fillCircleHelper]](x, y, r, corner)
 
</code>
 
</code>
  
 
Triangles :
 
Triangles :
 
<code>
 
<code>
* [[gb.display.drawTriangle]]()
+
* [[gb.display.drawTriangle]](x0, y0, x1, y1, x2, y2)
* [[gb.display.fillTriangle]]()
+
* [[gb.display.fillTriangle]](x0, y0, x1, y1, x2, y2)
 
</code>
 
</code>
  
 
Bitmaps :
 
Bitmaps :
 
<code>
 
<code>
* [[gb.display.drawBitmap]]()
+
* [[gb.display.drawBitmap]](x, y, bitmap, ''rotation, flip'')
* [[gb.display.setBitmapColor]]()
 
 
</code>
 
</code>
  
 
Text :
 
Text :
 
<code>
 
<code>
* [[gb.display.drawChar]]()
+
* [[gb.display.drawChar]](x, y, char, size)
* [[gb.display.print]]()
+
* [[gb.display.print]](text)
* [[gb.display.setCursor]]()
+
* [[gb.display.setCursor]](x, y)
* [[gb.display.setTextColor]]()
+
* [[gb.display.setTextSize]](size)
* [[gb.display.setTextSize]]()
+
* [[gb.display.setTextWrap]](true/false)
* [[gb.display.setTextWrap]]()
 
 
</code>
 
</code>
  
  
 
</div>
 
</div>

Revision as of 2014-04-20T10:09:41

The Reference lists and explains all the functions of the Library.

Arguments in italic are optional.

core

User interface :

Perfomance monitor :

buttons

sound

Play :

Volume :

Build-in sounds :

battery

backlight

display

General :

Pixels :

Lines :

Rectangles :

Circles :

Triangles :

Bitmaps :

Text :