Vai al contenuto

Challenge 2014-10

Number Challenge

Write a program to convert between Roman Numerals and numbers.

Game Challenge

Write a ‘moon lander’ type program.

Graphical Challenge 1

Make an animated growing tree.
From seed to seedling to sapling to tree with branches.
Tip: Perhaps consider using zoom and opacity with the animation.

Graphical Challenge 2

Make a color wheel or color cube.
You may need to use GetPixel, SetPixel and GetColorFromRGB methods in the GraphicsWindow object.
Can you find a faster way (not using extensions of course).

Use this with the ‘Introducing Small Basic’ paint program that comes with the installation (copied below) to select brush colours.

GraphicsWindow.MouseMove = OnMouseMove
GraphicsWindow.MouseDown = OnMouseDown

Sub OnMouseDown
   prevX  = GraphicsWindow.MouseX
   prevY  = GraphicsWindow.MouseY
EndSub

Sub OnMouseMove
   x=GraphicsWindow.MouseX
   y=GraphicsWindow.MouseY
   If(Mouse.IsLeftButtonDown) Then
      GraphicsWindow.DrawLine(prevX, prevY,  x, y)
   EndIf
   prevX=x
   prevY=y
EndSub

Community Suggestion

By Nonki

  1. Make a TODO list management program
  2. Draw (or fill) a pentagon
  3. Make a Sunrise Animation.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.