Skip to content
canvas.ts 356 B
Newer Older
Grant's avatar
Grant committed
import { type ClientConfig } from "./net";

export const CanvasLib = new (class {
  /**
   * Get pixel cooldown
   *
   * @param pixelNumber What pixel is this
   * @param config
   * @returns Seconds to take to give the pixel
   */
  getPixelCooldown(pixelNumber: number, config: ClientConfig) {
Grant's avatar
Grant committed
    return config.pallete.pixel_cooldown / 1000;
Grant's avatar
Grant committed
  }
})();