LsRotation

learn.LsRotation
object LsRotation extends LessonStatic

There are three types of values above. Numbers, text and Colours. Try changing the numbers, save the file and you should things move around the screen. Congratulations! you are now a programmer. But, but, you respond, there's loads of magic going on here that I don't understand. All programmers rely on magic, and of course the first thing we should know about magic is it doesn't always work. I will try and explain how some of the magic works, but in programming there's always more magic to decode.

The second type is text. Programmers refer to text as Strings, for some reason. I shall use the term string from now on. Strings start with a " quotation mark and end with a quotation mark. Change the text in on one of the strings, save the file, and you should see the text change on the screen. If you try replacing a string with a number or replacing a number with a String, the compiler will complain, and you will get an error message. The third type is Colour. Note Colours must have the correct capital letters. You can just try guessing the colours or you can google / duckduck web colours to see what is available. Again put a Colour where a number or a string is expected or vice versa and the compiler will complain.

Attributes

Graph
Supertypes
trait LessonStatic
class Object
trait Matchable
class Any
Self type
LsRotation.type

Members list

Type members

Inherited classlikes

class Canv(val canv: CanvasPlatform, frame: GraphicElems) extends CanvasNoPanels

Attributes

Inherited from:
LessonStatic
Supertypes
trait PanelLike
trait RectCenlign
trait WithCentre
trait CanvasUser
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

override def bodyStr: String

Attributes

Definition Classes
override def output: GraphicElems

Attributes

Definition Classes
override def title: String

Attributes

Definition Classes

Inherited methods

def canv: CanvasPlatform => Any

Attributes

Inherited from:
LessonStatic
def head: HtmlHead

Attributes

Inherited from:
LessonGraphics
def page: HtmlPage

Attributes

Inherited from:
LessonGraphics

Concrete fields

val cc: Pt2
val cd: CircleDraw
val p135: Pt2
val p180: Pt2
val p225: Pt2
val p270: Pt2
val p90: Pt2
val ps: Pt2