Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7178969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:02:19+00:00 2026-05-28T17:02:19+00:00

I have a slider that needs to adjust 3 variables. The slider min val

  • 0

I have a slider that needs to adjust 3 variables.
The slider min val is 0, max is 100.

What is the math behind adjusting the variables accordingly as the slider is moved?

See images…

Any help appreciated!!

slider value at 0
slider value at 50
slider value at 100
slider value at 75

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:02:20+00:00Added an answer on May 28, 2026 at 5:02 pm

    I don’t know about canvases but if you ask about just only the math that is easy:

    If the sliders value is X:

    A = 25 + max(50 – X, 0) / 2

    B = 50 – abs(50 – X) / 2

    C = 25 + max(X – 50, 0) /2

    In javascript there is Math.max() and Math.abs() so a method for calculating this is:

    function calculate(slidervalue) {
        var res = [];
        res['a'] = 25 + Math.max(50 - slidervalue, 0) / 2;
        res['b'] = 50 - Math.abs(50 - slidervalue) / 2;
        res['c'] = 25 + Math.max(slidervalue - 50, 0) /2;
        return res;
    }
    

    Of course you could make an object for the result or do whatever you want with it, it’s just sample code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a vertical slider that works well except when it needs to scroll
I have a StackPanel inside of a ScrollViewer. I have a slider that does
I have this complicated slider that utilizes tons of animation. I'm trying to find
I have Slider in my app that is connected to a few methods. In
I have this menu structure that is used to navigate through content slider panels.
I have an image gallery app that has a slider to control the width
I'm attempting to create a 100% width toolbar. This toolbar needs to have a
I have built a slider that has two possible buttons: one to .toggle ,
I have a sidebar on my site that occasionally needs to be scrolled. It's
I currently have a vertical slider that is controlled by the user using startDrag.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.