Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Add labels to sliders #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions chp06_agents/NOC_6_08_SeparationAndSeek/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ function setup() {
vehicles.push(new Vehicle(random(width), random(height)));
}

slider1 = createSlider(0, 8, 4);
slider2 = createSlider(0, 8, 4);
slider3 = createSlider(10, 160, 24);
slider1 = createSlider(0, 8, 4); //Separation Force
slider2 = createSlider(0, 8, 4); //Seek Force
slider3 = createSlider(10, 160, 24); //Desired Separation Distance
s1 = createP("Separation Force");
s2 = createP("Seek Force");
s3 = createP("Separation Distance");
s1.position(15, 380);
s2.position(163, 380);
s3.position(267, 380);

}

Expand All @@ -36,4 +42,4 @@ function draw() {
v.display();
}

}
}