PC Logo Wiki
Register
No edit summary
No edit summary
 
(14 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
PC Logo is an education language can help we calculate, sing, draw, write.
 
PC Logo is an education language can help we calculate, sing, draw, write.
   
  +
HAVE FUN!
 
  +
  +
 
Error: HAVE FUN!
   
 
Please Download the PC Logo 4.0.
 
Please Download the PC Logo 4.0.
  +
  +
==YOU CAN'T EDIT==
  +
You CAN'T edit because the page is protected page.
  +
DO YOU KNOW?
  +
  +
==Activities==
  +
1. PC Logo Wiki is [[Activity:one year old]]!
   
 
==Describe your topic==
 
==Describe your topic==
Line 16: Line 26:
 
<activityfeed/>
 
<activityfeed/>
 
==FEATURED ARTICLE==
 
==FEATURED ARTICLE==
  +
Logo turtle movements are measured in turtle steps while computer monitors display graphics in pixels. Logo provides several ways to relate turtle steps to graphics pixels. When Logo starts, each turtle step is equal to one screen pixel in any direction. The turtle is in WRAP mode, meaning it appears at the opposite border when it crosses one of the boundaries of the Graphics Window. If the window is enlarged with the mouse or the [[SETWINSIZE]] command, any wrapped lines reflect the previous border of the window but wrapping now occurs at the new window border. The [[HOME]] position is always in the middle of the Graphics Window regardless of its shape.
{{Featured Article/5}}
 
  +
  +
The [[SETWINSIZE]] command takes two inputs, the X and Y size of the drawing area as pixels. Since by default a turtle step is equal to a pixel, [[SETWINSIZE]] also determines the size of the Graphics Window in terms of turtle steps.
  +
  +
Sometimes it is useful to define the size of the Graphics Window in turtle steps regardless of its physical appearance in terms of pixels. Logo provides the [[SETEXTENT]] command to define the maximum distance from the HOME position of the turtle to the edge of the Graphics Window in terms of the turtle steps (the ''extent'' of the Graphcs Window). The [[SETEXTENT]] command takes one argument, the extent. You can, for example, establish that the border of the Graphics Window is 100 turtle steps from the [[HOME]] position no matter what the physical size or shape of the Graphics Window with the [[SETEXTENT]] 100 command. [[SETEXTENT]] can optionally take a second argument if you want to define different extents for the X and Y directions. For example, (SETEXTENT 100 200) defines a window that is 200 steps wide and 400 steps high.
  +
  +
By using the [[SETEXTENT]] command and scaling the Graphics Windows to turtle steps, you can be assured that your graphics fit within the Graphics Window no matter how it is resized. This created predictable relationships between your graphics and the Graphics Window but may result in your graphics being compressed or stretched depending on the ratio between the window size in pixels and turtle steps.
  +
  +
TO HEXDESIGN
  +
  +
<p style="margin-left: 24px">REPEAT 12[REPEAT 6 [FD 40 LT 60] RT 30]</p>
  +
  +
END[[File:Pc_logo_new_7.png|thumb|500px|Result is [0 0].]]
  +
  +
? EXTENT
  +
  +
Result: [0 0]
  +
  +
The (SETWINSIZE) command used in parentheses without inputs restores the default extent of the Graphics Window to one turtle step per pixel.
  +
  +
You can also move the [[HOME]] coordinates of one or more turtles with the [[SETORIGIN]] command. [[SETORIGIN]] takes two inputs, X and Y, and defines the new [[HOME]] position for all active turtles. The coordinates are relative to the original [[HOME]] position, which is in the center of the Graphics Window. Use the command (SETORIGIN) to revert your turtles to the original HOME position.
  +
  +
[[File:Pc_logo_new_8.png|thumb|500px|Result is [0 0] and [0 30].]]? SETWIDTH 10 \
  +
  +
? (DOT)
  +
  +
? SETORIGIN [0 \
  +
  +
? 30]
  +
  +
? GETXY
  +
  +
Result: [0 0]
  +
  +
? ORIGIN
  +
  +
Result: [0 30]
  +
  +
?
  +
 
==Programming Languages==
 
==Programming Languages==
 
<poll>
 
<poll>
Line 57: Line 106:
   
 
</poll>
 
</poll>
  +
  +
===The new code===
  +
/* by: [[User:Joeyaa|Joey Ahmadi]]<br />*/
  +
  +
$(function() {<br />if (wgNamespaceNumber == 500 && $('#article-comments-ul li').size() > 1) {<br />var then = $('#article-comments-ul > .SpeechBubble:first .permalink').attr('href');<br />then = new String(then.match(/\d{8}/));<br />var monthnames = ['January','February','March','April','May','June','July',<br />'August','September','October','November','December'];<br />var year = then.match(/^\d{4}/);<br />var month = then.substring(4,6);<br />month--;<br />month= monthnames[month];<br />var day = then.match(/\d{2}$/);<br />then = new Date(month+''+day+', '+year);<br />var old = parseInt(now - then);<br />old = Math.floor(old/(1000*60*60*24));<br />if (old > 30) {<br />$('#article-comm').attr('disabled','disabled').text('This blog post hasn\'t been commented on for over 30 days. There is no need to comment.');<br />$('#article-comm-submit').attr('disabled','disabled');<br />$('.article-comm-reply').remove();<br />}''
  +
}<br />});
  +
==No Virus warning==
  +
PC Logo is no viruses.
  +
  +
==About [[User:2.90.46.83]]'s false contribution==
  +
{{delete}}
  +
{{speedydelete}}
  +
{{speedydelete}}
  +
  +
==Edit rank==
  +
07-07
  +
{| border="0" cellpadding="1" cellspacing="1" class="article-table article-table-selected" style="width: 500px;"
  +
|1
  +
|[[User:Floatery|Floatery]]
  +
|1002 edits
  +
|-
  +
|2
  +
|[[User:UglyTurtle|UglyTurtle]]
  +
|2 edits
  +
|}
 
[[Category:Browse]]
 
[[Category:Browse]]
 
[[Category:Main Page]]
 
[[Category:Main Page]]
 
[[Category:PC Logo Wiki]]
 
[[Category:PC Logo Wiki]]
 
[[Category:Article stubs]]
 
[[Category:Article stubs]]
  +
[[Category:Danger Pages]]

Latest revision as of 07:34, 7 July 2013

Welcome to the PC Logo Wiki

PC Logo 4.0 PC Logo is a language you can write a program. PC Logo is an education language can help we calculate, sing, draw, write.



Error: HAVE FUN!

Please Download the PC Logo 4.0.

YOU CAN'T EDIT

You CAN'T edit because the page is protected page. DO YOU KNOW?

Activities

1. PC Logo Wiki is Activity:one year old!

Describe your topic

PC Logo is a programming language. The newest is the PC Logo 4.0.

Latest activity

FEATURED ARTICLE

Logo turtle movements are measured in turtle steps while computer monitors display graphics in pixels. Logo provides several ways to relate turtle steps to graphics pixels. When Logo starts, each turtle step is equal to one screen pixel in any direction. The turtle is in WRAP mode, meaning it appears at the opposite border when it crosses one of the boundaries of the Graphics Window. If the window is enlarged with the mouse or the SETWINSIZE command, any wrapped lines reflect the previous border of the window but wrapping now occurs at the new window border. The HOME position is always in the middle of the Graphics Window regardless of its shape.

The SETWINSIZE command takes two inputs, the X and Y size of the drawing area as pixels. Since by default a turtle step is equal to a pixel, SETWINSIZE also determines the size of the Graphics Window in terms of turtle steps.

Sometimes it is useful to define the size of the Graphics Window in turtle steps regardless of its physical appearance in terms of pixels. Logo provides the SETEXTENT command to define the maximum distance from the HOME position of the turtle to the edge of the Graphics Window in terms of the turtle steps (the extent of the Graphcs Window). The SETEXTENT command takes one argument, the extent. You can, for example, establish that the border of the Graphics Window is 100 turtle steps from the HOME position no matter what the physical size or shape of the Graphics Window with the SETEXTENT 100 command. SETEXTENT can optionally take a second argument if you want to define different extents for the X and Y directions. For example, (SETEXTENT 100 200) defines a window that is 200 steps wide and 400 steps high.

By using the SETEXTENT command and scaling the Graphics Windows to turtle steps, you can be assured that your graphics fit within the Graphics Window no matter how it is resized. This created predictable relationships between your graphics and the Graphics Window but may result in your graphics being compressed or stretched depending on the ratio between the window size in pixels and turtle steps.

TO HEXDESIGN

REPEAT 12[REPEAT 6 [FD 40 LT 60] RT 30]

END

Pc logo new 7

Result is [0 0].

? EXTENT

Result: [0 0]

The (SETWINSIZE) command used in parentheses without inputs restores the default extent of the Graphics Window to one turtle step per pixel.

You can also move the HOME coordinates of one or more turtles with the SETORIGIN command. SETORIGIN takes two inputs, X and Y, and defines the new HOME position for all active turtles. The coordinates are relative to the original HOME position, which is in the center of the Graphics Window. Use the command (SETORIGIN) to revert your turtles to the original HOME position.

Pc logo new 8

Result is [0 0] and [0 30].

? SETWIDTH 10 \

? (DOT)

? SETORIGIN [0 \

? 30]

? GETXY

Result: [0 0]

? ORIGIN

Result: [0 30]

?

Programming Languages



The new code

/* by: Joey Ahmadi
*/

$(function() {
if (wgNamespaceNumber == 500 && $('#article-comments-ul li').size() > 1) {
var then = $('#article-comments-ul > .SpeechBubble:first .permalink').attr('href');
then = new String(then.match(/\d{8}/));
var monthnames = ['January','February','March','April','May','June','July',
'August','September','October','November','December'];
var year = then.match(/^\d{4}/);
var month = then.substring(4,6);
month--;
month= monthnames[month];
var day = then.match(/\d{2}$/);
then = new Date(month++day+', '+year);
var old = parseInt(now - then);
old = Math.floor(old/(1000*60*60*24));
if (old > 30) {
$('#article-comm').attr('disabled','disabled').text('This blog post hasn\'t been commented on for over 30 days. There is no need to comment.');
$('#article-comm-submit').attr('disabled','disabled');
$('.article-comm-reply').remove();
}
}
});

No Virus warning

PC Logo is no viruses.

About User:2.90.46.83's false contribution

Edit rank

07-07

1 Floatery 1002 edits
2 UglyTurtle 2 edits