First Programming

Write CuteHSP's program as follows.

It is a one-line program with only the 'stop' instruction if it is only to output a window.

    stop


When executed, it will generate a window and wait for the close button to be pressed.

If you want to display something, do as follows.

Display on title bar

    title "Hello, World!"
    stop


Display characters in window (It is necessary to read the font.)

    font "tiny_en.ttf",20
    mes "Be not afraid of going slowly,"
    mes " be afraid only of standing still."
    stop


Display graphic (Circle of fill) in window

    circle 300,200,500,400
    stop


When drawing with yellow

    color 255,255,0
    circle 300,200,500,400
    stop


Drawing tool of 5 lines.

    repeat
        stick k
        if k=256 :circle mousex-4,mousey-4,mousex+4,mousey+4
        wait 1
    loop


Neither '(){};' is required.
Long instruction words are also unnecessary.

Let's programming with CuteHSP!


Comments

Popular Posts