You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
536 B
34 lines
536 B
/*
|
|
Copyright (c) 2004, Lode Vandevenne
|
|
All rights reserved.
|
|
*/
|
|
|
|
#include <cmath>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <iostream>
|
|
|
|
#include "quickcg.h"
|
|
using namespace QuickCG;
|
|
using namespace std;
|
|
|
|
//place the example code below here:
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
screen(256, 256, 0, "Small Test Script");
|
|
for (int x = 0; x < w; x++)
|
|
for (int y = 0; y < h; y++)
|
|
{
|
|
pset(x, y, ColorRGBA(x, y, 128, 255));
|
|
}
|
|
print("Hello, world!", 8, 8);
|
|
|
|
std::string test;
|
|
test.resize(20);
|
|
|
|
redraw();
|
|
sleep();
|
|
|
|
return 0;
|
|
}
|
|
|