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
3865ad43
Commit
3865ad43
authored
Jul 16, 2019
by
Ahmad Reza Cheraghi
Browse files
Update matter.py
parent
2ca303de
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/matter.py
View file @
3865ad43
...
...
@@ -33,9 +33,9 @@ color_map = {
class
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
,
type
=
None
,
mm_limit
=
False
,
mm_size
=
0
):
def
__init__
(
self
,
sim
,
coords
,
color
=
black
,
alpha
=
1
,
type
=
None
,
mm_size
=
10
0
):
"""Initializing the marker constructor"""
self
.
coords
=
(
x
,
y
)
self
.
coords
=
coords
self
.
color
=
color_map
[
color
]
self
.
__id
=
str
(
uuid
.
uuid4
())
self
.
memory_delay_time
=
3
...
...
@@ -47,7 +47,7 @@ class Matter():
self
.
__modified
=
False
self
.
__alpha
=
alpha
self
.
type
=
type
self
.
mm_limit
=
mm_limit
self
.
mm_limit
=
sim
.
config_data
.
mm_limit
ation
self
.
mm_size
=
mm_size
def
set_alpha
(
self
,
alpha
):
...
...
Write
Preview
Markdown
is supported
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