Module:Color contrast: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

24 August 2024

  • curprev 12:3312:33, 24 August 2024Tech Support Squid talk contribs 5,534 bytes +5,534 Created page with "local p = {} local HTMLcolor = mw.loadData('Module:Color contrast/colors') -- Helper function to convert sRGB component to linearized value local function sRGB(v) return (v <= 0.03928) and (v / 12.92) or math.pow((v + 0.055) / 1.055, 2.4) end -- Calculate luminance from RGB values local function rgbdec2lum(R, G, B) if R >= 0 and R < 256 and G >= 0 and G < 256 and B >= 0 and B < 256 then return 0.2126 * sRGB(R / 255) + 0.7152 * sRGB(G / 255) + 0.0722 * sRGB(B / 255)..."