Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ahmad Reza Cheraghi
swarm-sim
Commits
a7b329b6
Commit
a7b329b6
authored
Jun 04, 2019
by
Ahmad Reza Cheraghi
Browse files
Upload New File
parent
c5d66f0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/marker.py
0 → 100644
View file @
a7b329b6
"""The marker module provides the interface to the markers. A marker is any point on
the coordinate system of the simulators sim"""
from
lib
import
matter
black
=
1
gray
=
2
red
=
3
green
=
4
blue
=
5
class
marker
(
matter
.
Matter
):
"""In the classe marker all the methods for the characterstic of a marker is included"""
def
__init__
(
self
,
sim
,
x
,
y
,
color
=
black
,
alpha
=
1
,
mm_limit
=
0
,
mm_size
=
0
):
"""Initializing the marker constructor"""
super
().
__init__
(
sim
,
x
,
y
,
color
,
alpha
,
type
=
"marker"
,
mm_limit
=
mm_limit
,
mm_size
=
mm_size
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment