Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
demo4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Maintenance moved to Monday 17.3. at 13:00. ETA 60 - 90 minutes.
Show more breadcrumbs
Sini Aho
demo4
Compare revisions
main to main
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
simaah/demo4
Select target project
No results found
main
Select Git revision
Branches
main
Swap
Target
ohpe2024/demo4
Select target project
ohpe2024/demo4
tovolk/demo4
dakark/demo4
jealja/demo4
simaah/demo4
jwtaka/demo4
mmarki/demo4
aoalin/demo4
lhmiet/demo4
elmart/demo4
mmkuut/demo4
mijhut/demo4
rakakk/demo4
eeokar/demo4
tjurpo/demo4
ejinki/demo4
ljvaal/demo4
saatak/demo4
mikjhe/demo4
jaokaa/demo4
aamath/demo4
kearvo/demo4
limaaj/demo4
alanyk/demo4
rsmata/demo4
aajauh/demo4
anpeke/demo4
hakavaa/demo4
aitani/demo4
t10ashuh/demo4
eapull/demo4
31 results
main
Select Git revision
Branches
main
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Upload New File
· 5ec11958
Sini Aho
authored
2 months ago
5ec11958
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lumiukko.py
+24
-0
24 additions, 0 deletions
lumiukko.py
with
24 additions
and
0 deletions
lumiukko.py
0 → 100644
View file @
5ec11958
import
pygame
def
alusta
():
pygame
.
init
()
naytto
=
pygame
.
display
.
set_mode
((
480
,
640
))
return
naytto
def
piirra
(
naytto
,
x
:
int
,
y
:
int
):
pygame
.
draw
.
circle
(
naytto
,
(
255
,
255
,
255
),
(
x
,
y
),
80
)
pygame
.
draw
.
circle
(
naytto
,
(
255
,
255
,
255
),
(
x
,
y
-
140
),
60
)
pygame
.
draw
.
circle
(
naytto
,
(
255
,
255
,
255
),
(
x
,
y
-
240
),
40
)
ukko_x
=
240
ukko_y
=
420
NOPEUS
=
0.2
naytto
=
alusta
()
pygame
.
time
.
Clock
()
while
True
:
for
tapahtua
in
pygame
.
event
.
get
():
exit
()
naytto
.
fill
((
0
,
0
,
0
))
lumiukko
=
piirra
(
naytto
,
ukko_x
,
ukko_y
)
pygame
.
display
.
flip
()
This diff is collapsed.
Click to expand it.