mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
- Remove nested git repository from bugulma/frontend/.git - Add all frontend files to main repository tracking - Convert from separate frontend/backend repos to unified monorepo - Preserve all frontend code and development history as tracked files - Eliminate nested repository complexity for simpler development workflow This creates a proper monorepo structure with frontend and backend coexisting in the same repository for easier development and deployment.
59 lines
1.3 KiB
TypeScript
59 lines
1.3 KiB
TypeScript
/**
|
|
* Pixel Art Library - Main Export
|
|
*
|
|
* A comprehensive library for creating pixel-perfect icons, logos, and sprites
|
|
* using HTML5 Canvas API with TypeScript support.
|
|
*
|
|
* @example
|
|
* ```tsx
|
|
* import { PixelArtRenderer, PALETTES, createCircle } from '@/lib/pixel-art';
|
|
*
|
|
* const renderer = new PixelArtRenderer(ctx, { width: 32, height: 32 }, PALETTES.warm);
|
|
* renderer.circle(createCircle(16, 16, 10), renderer.color('crustLight'));
|
|
* ```
|
|
*/
|
|
|
|
export { PixelArtRenderer } from '@/lib/pixel-art/renderer';
|
|
export { PALETTES, getColor, createPalette, mergePalettes } from '@/lib/pixel-art/palettes';
|
|
export {
|
|
createRect,
|
|
createCircle,
|
|
createTriangle,
|
|
createEquilateralTriangle,
|
|
createPoint,
|
|
rotatePoint,
|
|
scalePoint,
|
|
translatePoint,
|
|
distance,
|
|
createPolygon,
|
|
createStar,
|
|
createHeart,
|
|
createDiamond,
|
|
} from '@/lib/pixel-art/shapes';
|
|
|
|
export type {
|
|
PixelArtConfig,
|
|
ColorPalette,
|
|
Point,
|
|
Rectangle,
|
|
Circle,
|
|
Triangle,
|
|
GradientStop,
|
|
LinearGradient,
|
|
RadialGradient,
|
|
PixelArtLayer,
|
|
SpriteFrame,
|
|
AnimationFrame,
|
|
PixelArtIcon,
|
|
DrawFunction,
|
|
} from '@/lib/pixel-art/types';
|
|
|
|
// Example icon builders
|
|
export {
|
|
drawStarIcon,
|
|
drawHeartIcon,
|
|
drawFoodIcon,
|
|
drawBuildingIcon,
|
|
drawSteamEffect,
|
|
} from '@/lib/pixel-art/examples';
|