This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//-------------------------------------------------------- | |
// FUNCTION colouring | |
//-------------------------------------------------------- | |
void colouring() | |
{ | |
if(has_colors()) | |
{ | |
if(start_color() == OK) | |
{ | |
init_pair(1, COLOR_YELLOW, COLOR_RED); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/p5.min.js"></script> | |
<script type="text/javascript" | |
src="https://cdn.rawgit.com/brython-dev/brython/master/www/src/brython.js"> | |
</script> | |
<script src="https://cdn.rawgit.com/brython-dev/brython/master/www/src/brython_stdlib.js"></script> | |
</head> | |
<body onload="brython(1)"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Turtle Graphics in Processing | |
// Natalie Freed, February 2013 | |
// This program shows another way to think about moving | |
// through Processing's coordinate system. Instead of placing | |
// points on a grid, you can imagine yourself as being somewhere | |
// on the grid, facing a direction. You can move forward or turn. | |
// The drawn line follows behind you. | |
PVector loc; //current location | |
float orientation; //current orientation |