Skip to content
View YuryScript's full-sized avatar
🎯
Focusing
🎯
Focusing

Block or report YuryScript

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. particles particles Public

    Particle library written in JavaScript

    JavaScript 11 3

  2. [JS] Smoothstep function [JS] Smoothstep function
    1
    function smoothstep(edgeA, edgeB, x) {
    2
      // Scale, bias and saturate x to 0..1 range
    3
      x = clamp((x - edgeA) / (edgeB - edgeA), 0, 1); 
    4
      // Evaluate polynomial
    5
      return x * x * (3 - 2 * x);
  3. [JS] Mix (or lerp) function [JS] Mix (or lerp) function
    1
    function mix(a, b, amount) {
    2
      return a + amount * (b - a)
    3
    }
  4. [JS] Smootherstep function [JS] Smootherstep function
    1
    function smootherstep(edgeA, edgeB, x) {
    2
      // Scale, bias and saturate x to 0..1 range
    3
      x = clamp((x - edgeA) / (edgeB - edgeA), 0, 1)
    4
      // Evaluate polynomial
    5
      return x * x * x * (x * (x * 6 - 15) + 10)