bernii / gauge.js

100% native and cool looking JavaScript gauge
MIT License
1.42k stars 391 forks source link

Feature suggestion: rendering shadows #231

Closed Zt-freak closed 3 months ago

Zt-freak commented 4 years ago

Support for rendering shadows for the pointer and gauge.

const opts = {
  angle: 0,
  lineWidth: 0.44,
  radiusScale: 1,
  pointer: {
    length: 0.6,
    strokeWidth: 0.035,
    color: "#000000",
    /* support for attributes like this so that a gauge can render a shadow */
    shadowColor: "#000000",
    shadowBlur: 6,
    shadowOffsetX: 6,
    shadowOffsetY: 6
  },
  limitMax: false,
  limitMin: false,
  colorStart: "#6FADCF",
  colorStop: "#29ABE2",
  strokeColor: "#E0E0E0",
  generateGradient: true,
  highDpiSupport: true,
  /* possibly here too */
  shadowColor: "#000000",
  shadowBlur: 6,
  shadowOffsetX: 6,
  shadowOffsetY: 6
}