card-factory
Version:
A comprehensive library for card manipulation
86 lines (85 loc) • 2.4 kB
JavaScript
import { Table } from "./table";
export const greenFelt = {
tileImage: "45-degree-fabric-light.png",
backgroundColor: "rgb(38, 133, 72)",
overlayStartColor: "rgba(0, 100, 0, 0)",
overlayEndColor: "rgba(0, 0, 0, 1)",
overlayGradientType: "radial",
overlayDirection: "to bottom",
overlayCenter: "center",
overlaySize: "100%",
vignette: {
enabled: true,
center: "center",
size: "80%",
color: "rgba(0, 0, 0, 0.4)",
},
};
export const redFelt = {
tileImage: "45-degree-fabric-light.png",
backgroundColor: "rgb(181 44 44)",
overlayStartColor: "rgba(0, 100, 0, 0)",
overlayEndColor: "rgba(0, 0, 0, 0.6)",
overlayGradientType: "radial",
overlayDirection: "to bottom",
overlayCenter: "center",
overlaySize: "100%",
vignette: {
enabled: true,
center: "center",
size: "80%",
color: "rgba(0, 0, 0, 0.4)",
},
};
export const brickWall = {
tileImage: "brick-wall.png",
backgroundColor: "rgba(114, 6, 6, 1)",
overlayStartColor: "rgba(0, 100, 0, 0)",
overlayEndColor: "rgba(0, 0, 0, 1)",
overlayGradientType: "linear",
overlayDirection: "to bottom",
overlayCenter: "top",
overlaySize: "100%",
vignette: {
enabled: false,
center: "center",
size: "80%",
color: "rgba(0, 0, 0, 0.4)",
},
};
export const redOak = {
tileImage: "wood-pattern.png",
backgroundColor: "rgb(100 70 70)",
overlayStartColor: "rgba(0, 100, 0, 0)",
overlayEndColor: "rgba(0, 0, 0, 0.6)",
overlayGradientType: "radial",
overlayDirection: "to bottom",
overlayCenter: "center",
overlaySize: "100%",
vignette: {
enabled: true,
center: "center",
size: "80%",
color: "rgba(0, 0, 0, 0.4)",
},
};
export const tanTiles = {
tileImage: "gradient-squares.png",
backgroundColor: "rgb(175 157 149)",
overlayStartColor: "rgba(118 60 28 / 35%)",
overlayEndColor: "rgba(0, 0, 0, 1)",
overlayGradientType: "radial",
overlayDirection: "to bottom",
overlayCenter: "center",
overlaySize: "100%",
vignette: {
enabled: true,
center: "center",
size: "80%",
color: "rgba(0, 0, 0, 0.4)",
},
};
export function setTheme(theme, element) {
const table = new Table(element, theme);
table.setBackground();
}