Module:Rgba: Revision history

Jump to navigation Jump to search
Diff selection: mark the radio boxes of the versions to compare or click on a revision date to view it. (cur) = difference from current version, (prev) = difference from preceding version,  m = minor edit, → = section edit

15 October 2024

  • curprev 18:2318:23, 15 October 2024Alex talk contribs 4,726 bytes +4,726 Created page with "-- <nowiki> ---@class rgba local rgba = {} local libraryUtil = require( 'Module:libraryUtil' ) local max = math.max local min = math.min local floor = math.floor local abs = math.abs local checkRgbaClass = libraryUtil.makeCheckClassFunction( 'Module:Rgba' , 'rgba', rgba, 'rgba object' ) local function clip( val, lower, upper ) return min( upper, max( lower, val ) ) end local function round( num, d ) d = 10^( d or 0 ) return floor( num*d + 0.5 ) / d end lo..."