Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
🚀
This server has been upgraded to GitLab release
15.7
.
🚀
Open sidebar
grains
grains-web
Commits
22806f30
Commit
22806f30
authored
May 17, 2017
by
Jens-Christian Fischer
Browse files
fix that or this
parent
f3d9c864
Changes
2
Hide whitespace changes
Inline
Side-by-side
mix.exs
View file @
22806f30
...
...
@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
def
project
do
[
app:
:grains
,
version:
"0.0.7
2
"
,
version:
"0.0.7
3
"
,
elixir:
"~> 1.2"
,
elixirc_paths:
elixirc_paths
(
Mix
.
env
),
compilers:
[
:phoenix
,
:gettext
]
++
Mix
.
compilers
,
...
...
web/static/js/presencesketch.js
View file @
22806f30
...
...
@@ -350,12 +350,13 @@ Boid.prototype.render = function(list) {
// the master looks at his minions and draws lines
if
(
list
)
{
let
that
=
this
;
let
neighbordist
=
250
;
_
.
each
(
list
,
function
(
boid
)
{
var
d
=
p5
.
Vector
.
dist
(
that
.
position
,
boid
.
position
);
if
((
d
>
0
)
&&
(
d
<
neighbordist
))
{
th
is
.
p
.
stroke
(
255
);
th
is
.
p
.
line
(
th
is
.
position
.
x
,
th
is
.
position
.
y
,
th
at
.
p
.
stroke
(
255
);
th
at
.
p
.
line
(
th
at
.
position
.
x
,
th
at
.
position
.
y
,
boid
.
position
.
x
,
boid
.
position
.
y
);
}
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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