Det skrÃ¥ kast!

1 / 12

# Det skrÃ¥ kast! - PowerPoint PPT Presentation

Det skrÃ¥ kast!. Sebastian Smith. Koordinatsystemet. Vandrette og lodrette. Farver Eksempel: w.create_line (100,500,100,0, fill=&quot;#c4c1c1 &quot;). Kodning. #--1.Creating horisontal lines-- w.create_line (0,400,700,400, fill=&quot;#000000&quot;,width=2) w.create_line (0,100,700,100, fill=&quot;#c4c1c1&quot;)

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

## PowerPoint Slideshow about 'Det skrÃ¥ kast!' - porter

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

### Det skrå kast!

Sebastian Smith

Koordinatsystemet

Vandrette og lodrette.

Farver

Eksempel: w.create_line(100,500,100,0, fill="#c4c1c1")

Kodning.

#--1.Creating horisontal lines--

w.create_line(0,400,700,400, fill="#000000",width=2)

w.create_line(0,100,700,100, fill="#c4c1c1")

w.create_line(0,200,700,200, fill="#c4c1c1")

w.create_line(0,300,700,300, fill="#c4c1c1")

#--2.Creating vertical lines--

w.create_line(600,500,600,0, fill="#000000",width=2)

w.create_line(100,500,100,0, fill="#c4c1c1")

w.create_line(200,500,200,0, fill="#c4c1c1")

w.create_line(300,500,300,0, fill="#c4c1c1")

w.create_line(400,500,400,0, fill="#c4c1c1")

w.create_line(500,500,500,0, fill="#c4c1c1")

Tal på koordinatsystemet (Labels)

Placering.

Text.

Placering ved pixel.

Eksemple: w.create_text(95, 100, anchor="se", text="300cm").

Kodning.

#--3.Creating horisontal axislabels--

w.create_text(95, 100, anchor="se", text="300cm")

w.create_text(95, 200, anchor="se", text="200cm")

w.create_text(95, 300, anchor="se", text="100cm")

w.create_text(95, 400, anchor="se", text="0cm")

w.create_text(605, 204, anchor="nw", text="Wall")

w.create_text(335, 404, anchor="nw", text="Floor")

w.create_text(105, 460, anchor="nw", text="0cm")

w.create_text(205, 460, anchor="nw", text="100cm")

w.create_text(305, 460, anchor="nw", text="200cm")

w.create_text(405, 460, anchor="nw", text="300cm")

w.create_text(505, 460, anchor="nw", text="400cm")

w.create_text(605, 460, anchor="nw", text="500cm")

Grafen.

Start position.

Start kræft.

Bevægelse.

Kodning

w.create_line(x1,y1,x2,y2, fill="#ff0000")

• x1=x2
• y1=y2
• x1=100.0 #x start position
• y1=400.0#y start position
• vx= float(Text10.get()) #x start velocity
• vy= float(Text10.get())*-1 #y start velocity
Tyngdekraft og luftmodstand.

Tyngdekraft.

Luftmodstand.

Reducering af styrke.

Sammenstød og bold

Væg.

Gulv.

Tegning af bold.

Vindue.

Labels.

Bokse.

Knapper.

Test

Løbende tests.

Færdige produkt test.

Forbedringer.

Optimering.

Vinkel bolden bliver skudt af sted fra.

Design.