SColor.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. export declare class SColor {
  2. static readonly Transparent: SColor;
  3. static readonly Black: SColor;
  4. static readonly DarkBlue: SColor;
  5. static readonly Blue: SColor;
  6. static readonly DarkGreen: SColor;
  7. static readonly Green: SColor;
  8. static readonly DarkCyan: SColor;
  9. static readonly Cyan: SColor;
  10. static readonly DarkRed: SColor;
  11. static readonly Red: SColor;
  12. static readonly DarkMagenta: SColor;
  13. static readonly Magenta: SColor;
  14. static readonly DarkYellow: SColor;
  15. static readonly Yellow: SColor;
  16. static readonly White: SColor;
  17. static readonly DarkGray: SColor;
  18. static readonly Gray: SColor;
  19. static readonly LightGray: SColor;
  20. static rgb(r: number, g: number, b: number): SColor;
  21. static rgba(r: number, g: number, b: number, a: number): SColor;
  22. get red(): number;
  23. set red(v: number);
  24. get green(): number;
  25. set green(v: number);
  26. get blue(): number;
  27. set blue(v: number);
  28. get alpha(): number;
  29. set alpha(v: number);
  30. private _value;
  31. get value(): string;
  32. set value(v: string);
  33. constructor();
  34. constructor(r: number, g: number, b: number);
  35. constructor(r: number, g: number, b: number, a: number);
  36. constructor(color: string);
  37. constructor(color: SColor);
  38. private setRgb;
  39. private setRgba;
  40. }