8 March 12 2 Feb 12
Today I Learnt
-More about computer Control
-Tim Berners-Lee
-More about Logo
http://derrel.net/ep/logo/logo_com.htm Logo:
Pen and Color Commands PU
Short for "pen up," it lifts the "pen" from the screen so that moving the turtle doesn't draw a line. PD
Puts the pen down so that moving the turtle draws a line SetPenSize
Sets the width of the pen to n pixels. Note that it is necessary to put in two numbers. Example:SetPenSize [5 5] SetPC [r g b]
Sets the pen color to the appropriate RGB (Red, Green, Blue) values, where r, g,and b are numbers that range from 0 to 255. (Non-integers are rounded.) Example:SetPC [255 0 0](Gives red) Penerase
Sets the pen to down and sets the mode to erase. When the pen is moved, it will erase whatever is under it. An abbreviation is pe. Example:Peneraseorpe Pennormal
Sets the pen back to normal mode and cancels erase mode. setfloodcolor[r g b]
Sets the flood color to the appropriate RGB (Red, Green, Blue) values, where r, g,and b are numbers that range from 0 to 255. (Non-integers are rounded.) Example:setfloodcolor[255 0 255](Gives magenta) fill
Floods the area bounded by lines with whatever color was specified in the setfloodcolor command. Example:fillMove (drawing) commands FDx
Move forward x pixels Example:FD100 BKx
Move Backward x pixels Example:BK100 LTx
Rotate the turtle x degrees left
Example: LT 45 RTx
Rotate the turtle x degrees right. Example:RT45 ARCa r
Draw an arc with an included angle of a degrees and radius of r. However, the turtle remains at the center of the arc. Example:ARC45 100 ARC2a r
Draw an arc with an included angle of a degrees and radius of r. However, the turtle ends up at the end of the arc. Example:ARC45 100
Turtle and Position Commands ST
Shows the current turtle. Example:ST HT
Hides the current turtle. Example:HT Orientation
Returns a three member list with the orientation of the turtle. In two dimensions, we are only concerned with the last element in the list. You can either assign the list to a variable, or get a value from the list. Example:Orientation; Make "startangle LAST Orientation (Assigns the value of the turtle's x position to the variable startangle) Pos
Returns a two member list with the x and y position of the turtle. You can either assign the list to a variable, or get a value from the list. Example:POS; Make "xstartposition FIRST POS (Assigns the value of the turtle's x position to the variable xstartposition) setorientation [roll pitch heading]
Uses a three element list to set the position of the turtle. In two dimensions, we are only concerned with the heading element in the list but all three elements are needed. Example:setorientation [0 0 90] Leaves the turtle pointing 90 degrees from straight up; setpos [x y]
Sets the absolute xand position of the turtle. If the pen is down, it will draw a line from it's previous position. Example:setpos [100 90]Sets the turtle x=100 and y=90. SetTurtlen
Changes to turtle n with the first turtle being turtle 0 and the last being turtle 1023. Note that it creates all of the turtles between 0 and the one specified, so SetTurtle100 will create turtles 1-99 if they have not yet been created. Example:SetTurtlen SetTurtlen
Changes to turtle n with the first turtle being turtle 0 and the last being turtle 1023. Note that it creates all of the turtles between 0 and the one specified, so SetTurtle100 will create turtles 1-99 if they have not yet been created. Example:SetTurtlen Program Commands Toname arg1 arg2 ....
Starts a procedure, called name, that takes optional arguments arg1 arg2 ..... Examples:ToSquare Torpolygon :numsides :sidelength :numrepeats End
Marks the end of a procedure and is required. Example:End CS
An abbreviation for clear screen, it clears the screen and returns the mouse to it's home position. Example:End Repeatn[ instruction list]
Repeats the actions listed in the instruction list an n number of times. Examples:Repeatn[ fd 10 lt 90 square ]or Repeat:numrepeat[ fd 10 polygon :angle :sidelength ] Show
Shows in the commander whatever you ask. It can be a value or an instruction list. Waitn
Pauses for the specified amount of time, measured in 1/60 seconds, before executing the next command. So, if n is 60, the program will pause for 1 second. Example:Random30
19 Jan 12
What I learnt today:
-Syntax is a language to command programs. HTML, Java and Robots are Syntax based.
-When we control the logo turtle, we must control using it's point of view.
-Computer control.
Computer Control work:
A control system is a computer system which control physical conditions and many technology, such as in factories, traffic light, water tank and etc. A control system uses microprocessors or computers to control.
In physical conditions, it controls a certain amount the same or varying them, such as Temperature, pressure, humidity, light, moisture and etc. A control system also controls air conditionsing system, central heating (only in cold countries), Refridgeration, Car Manifacture plants, process control. To control we need -Numeric keypad, push buttons/ switches, temperature sensor, moisture sensor, pressure sensor, light sensor and contact switch. These are the main things
Inputs
Processes
Outputs
Buttons/touchscreen
Sensors monitor temperature continuously
LED display
Contact switch
Analogue data from sensors converted to digital using ADC
Presentation-Inserting a sound
Draft 2:
Draft 1:
Exam
Next time if i had to do this again, i would annotate and use few more functions.
I agree with peer assessment.
26 April 12
Adobe Flash Criteria
Animation
If you understand it and could demonstrate it, check the box. Otherwise, don't.
All items:Computer Website animation
Review
4 March 12
Today we learnt report, for more information, see document below.
29 March 12
22 March 2012
15 March 2012
Today I learnt about databases and datatypes
8 March 12
2 Feb 12
Today I Learnt
-More about computer Control
-Tim Berners-Lee
-More about Logo
http://derrel.net/ep/logo/logo_com.htm
Logo:
Pen and Color Commands
PU
Short for "pen up," it lifts the "pen" from the screen so that moving the turtle doesn't draw a line.
PD
Puts the pen down so that moving the turtle draws a line
SetPenSize
Sets the width of the pen to n pixels. Note that it is necessary to put in two numbers.
Example: SetPenSize [5 5]
SetPC [r g b]
Sets the pen color to the appropriate RGB (Red, Green, Blue) values, where r, g,and b are numbers that range from 0 to 255. (Non-integers are rounded.)
Example: SetPC [255 0 0] (Gives red)
Penerase
Sets the pen to down and sets the mode to erase. When the pen is moved, it will erase whatever is under it. An abbreviation is pe.
Example: Penerase or pe
Pennormal
Sets the pen back to normal mode and cancels erase mode.
setfloodcolor [r g b]
Sets the flood color to the appropriate RGB (Red, Green, Blue) values, where r, g,and b are numbers that range from 0 to 255. (Non-integers are rounded.)
Example: setfloodcolor [255 0 255] (Gives magenta)
fill
Floods the area bounded by lines with whatever color was specified in the setfloodcolor command.
Example: fill Move (drawing) commands
FD x
Move forward x pixels
Example: FD 100
BK x
Move Backward x pixels
Example: BK 100
LT x
Rotate the turtle x degrees left
Example: LT 45
RT x
Rotate the turtle x degrees right.
Example: RT 45
ARC a r
Draw an arc with an included angle of a degrees and radius of r. However, the turtle remains at the center of the arc.
Example: ARC 45 100
ARC2 a r
Draw an arc with an included angle of a degrees and radius of r. However, the turtle ends up at the end of the arc.
Example: ARC 45 100
Turtle and Position Commands
ST
Shows the current turtle.
Example: ST
HT
Hides the current turtle.
Example: HT
Orientation
Returns a three member list with the orientation of the turtle. In two dimensions, we are only concerned with the last element in the list. You can either assign the list to a variable, or get a value from the list.
Example: Orientation;
Make "startangle LAST Orientation (Assigns the value of the turtle's x position to the variable startangle)
Pos
Returns a two member list with the x and y position of the turtle. You can either assign the list to a variable, or get a value from the list.
Example: POS;
Make "xstartposition FIRST POS (Assigns the value of the turtle's x position to the variable xstartposition)
setorientation [roll pitch heading]
Uses a three element list to set the position of the turtle. In two dimensions, we are only concerned with the heading element in the list but all three elements are needed.
Example: setorientation [0 0 90] Leaves the turtle pointing 90 degrees from straight up;
setpos [x y]
Sets the absolute x and position of the turtle. If the pen is down, it will draw a line from it's previous position.
Example: setpos [100 90]Sets the turtle x=100 and y=90.
SetTurtle n
Changes to turtle n with the first turtle being turtle 0 and the last being turtle 1023. Note that it creates all of the turtles between 0 and the one specified, so SetTurtle 100 will create turtles 1-99 if they have not yet been created.
Example: SetTurtle n
SetTurtle n
Changes to turtle n with the first turtle being turtle 0 and the last being turtle 1023. Note that it creates all of the turtles between 0 and the one specified, so SetTurtle 100 will create turtles 1-99 if they have not yet been created.
Example: SetTurtle n
Program Commands
To name arg1 arg2 ....
Starts a procedure, called name, that takes optional arguments arg1 arg2 .....
Examples: To Square
To rpolygon :numsides :sidelength :numrepeats
End
Marks the end of a procedure and is required.
Example: End
CS
An abbreviation for clear screen, it clears the screen and returns the mouse to it's home position.
Example: End
Repeat n [ instruction list]
Repeats the actions listed in the instruction list an n number of times.
Examples: Repeat n [ fd 10 lt 90 square ] or
Repeat :numrepeat [ fd 10 polygon :angle :sidelength ]
Show
Shows in the commander whatever you ask. It can be a value or an instruction list.
Wait n
Pauses for the specified amount of time, measured in 1/60 seconds, before executing the next command. So, if n is 60, the program will pause for 1 second.
Example: Random 30
19 Jan 12
What I learnt today:
-Syntax is a language to command programs. HTML, Java and Robots are Syntax based.
-When we control the logo turtle, we must control using it's point of view.
-Computer control.
Computer Control work:
A control system is a computer system which control physical conditions and many technology, such as in factories, traffic light, water tank and etc. A control system uses microprocessors or computers to control.
In physical conditions, it controls a certain amount the same or varying them, such as Temperature, pressure, humidity, light, moisture and etc. A control system also controls air conditionsing system, central heating (only in cold countries), Refridgeration, Car Manifacture plants, process control. To control we need -Numeric keypad, push buttons/ switches, temperature sensor, moisture sensor, pressure sensor, light sensor and contact switch. These are the main things