Is this possible to create 2-axis 4 color gradient in css (bilinear gradient)?
问题 My exmaple in JavaScript and <canvas> . https://codepen.io/KonradLinkowski/pen/QWbjaPr const canvas = document.querySelector('#box') const ctx = canvas.getContext('2d') const interpolate = (value, start, end) => (end - start) * value + start const interpolateRGB = (value, start, end) => { return { r: interpolate(value, start.r, end.r), g: interpolate(value, start.g, end.g), b: interpolate(value, start.b, end.b) } } const calcColor = (point, topLeft, topRight, bottomLeft, bottomRight) => {