Lavf XXXXXXXXXX

1 answer below »

Write code to let the user select the strokeWeight of a line


Write code to work like shown in the video attached below


All code must be done processing software, free software download on processing.org





Lavf58.12.100

Answered 1 days AfterOct 19, 2021

Answer To: Lavf XXXXXXXXXX

Ramachandran answered on Oct 21 2021
118 Votes
Order-94153/sketch_211020a/sketch_211020a.pde
//set the height of the range bar
int RANGE_BAR_HEIG
HT = 80;
//max value in the range
int RANGE_MAX = 50;
// initial stroke position
int currentRangePosition = 0;
//initial stroke weight
float currentStrokeWeight = 1f;
//constant values for color
color BLACK = color(0);
color RED = color(255, 0, 0);
color WHITE = color(255);
//text font size
int fontSize = 25;
//length of the center line
int LINE_LENGTH = 500;
void setup() {
size(800, 800);
surface.setTitle("Click on the menu area to change the stroke weight of the...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here