llvm-mos-sdk
Functions
turtle.h File Reference
#include <stdint.h>
#include <neo6502.h>
Include dependency graph for turtle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void neo_turtle_init (uint8_t idx)
 Initialise the turtle graphics system. More...
 
void neo_turtle_turn (int16_t deg)
 Turn the turtle right. Show if hidden. More...
 
void neo_turtle_move (int16_t len, uint8_t color, uint8_t pen)
 Move the turtle forward. Show if hidden. More...
 
void neo_turtle_hide (void)
 Hide the turtle. More...
 
void neo_turtle_home (void)
 Move the turtle to the home position - centered, facing upward. More...
 

Function Documentation

◆ neo_turtle_hide()

void neo_turtle_hide ( void  )

Hide the turtle.

◆ neo_turtle_home()

void neo_turtle_home ( void  )

Move the turtle to the home position - centered, facing upward.

◆ neo_turtle_init()

void neo_turtle_init ( uint8_t  idx)

Initialise the turtle graphics system.

Parameters
idxSprite index to use for the turtle.

◆ neo_turtle_move()

void neo_turtle_move ( int16_t  len,
uint8_t  color,
uint8_t  pen 
)

Move the turtle forward. Show if hidden.

Parameters
lenPixels to move.
colorColor to draw.
penPen down flag.

◆ neo_turtle_turn()

void neo_turtle_turn ( int16_t  deg)

Turn the turtle right. Show if hidden.

Parameters
degDegrees.