← 返回
内容创作 中文

Draw

Create SVG diagrams with shapes, layers, and multi-format export. Use when generating graphics, building diagrams, arranging layouts.
创建支持形状、图层及多格式导出的SVG图表。适用于生成图形、构建图表与布局排版。
bytesagain3
内容创作 clawhub v2.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 727
下载
💾 66
安装
2
版本
#latest

概述

Draw

Design toolkit for managing color palettes, generating swatches, mixing colors, creating gradients, previewing designs, and exporting results. A command-line companion for designers and front-end developers.

Commands

CommandDescription
----------------------
draw palette Create or log a color palette entry
draw preview Record a design preview note
draw generate Generate and log a design asset or concept
draw convert Log a color or format conversion
draw harmonize Record a color harmony analysis
draw contrast Log a contrast check result
draw export Log an export operation
draw random Record a random color or design generation
draw browse Log a browsing/discovery session
draw mix Record a color mixing result
draw gradient Log a gradient definition
draw swatch Record a color swatch entry
draw statsShow summary statistics across all logs
draw export Export all data (json, csv, or txt)
draw search Search across all log files for a term
draw recentShow the 20 most recent activity entries
draw statusHealth check — version, disk usage, last activity
draw helpShow all available commands
draw versionShow current version

Each command without arguments displays the most recent 20 entries from its log file.

Data Storage

All data is stored in ~/.local/share/draw/:

  • Per-command logspalette.log, preview.log, generate.log, convert.log, harmonize.log, contrast.log, export.log, random.log, browse.log, mix.log, gradient.log, swatch.log
  • Activity historyhistory.log (unified timeline of all actions)
  • Exportsexport.json, export.csv, or export.txt (generated on demand)

Data format: each entry is stored as YYYY-MM-DD HH:MM|, pipe-delimited for easy parsing.

Requirements

  • Bash 4+ with set -euo pipefail
  • Standard POSIX utilities (date, wc, du, head, tail, grep, cut, basename)
  • No external dependencies or API keys required

When to Use

  1. Building a color system — log palettes, harmonies, and contrast checks while designing a brand or UI theme
  2. Prototyping design assets — generate swatches, gradients, and random color explorations for rapid iteration
  3. Auditing accessibility — record contrast ratios and color harmony data for WCAG compliance reviews
  4. Maintaining a design journal — track every color decision, mix experiment, and conversion over time
  5. Exporting design data — export your full color and design history as JSON, CSV, or plain text for handoff to other tools

Examples

# Log a new palette
draw palette "#FF5733 #33FF57 #3357FF warm-sunset"

# Record a contrast check
draw contrast "bg:#FFFFFF fg:#333333 ratio:12.6:1 PASS"

# Mix two colors and log the result
draw mix "#FF0000 + #0000FF = #800080 purple"

# Generate a gradient definition
draw gradient "linear 90deg #000000 → #FFFFFF"

# Create a swatch entry
draw swatch "Coral #FF7F50 used in header CTA"

# Export all design data as JSON
draw export json

# Search all logs for a specific hex color
draw search "FF5733"

# View recent activity
draw recent

# Check overall status
draw status

Output

All command output goes to stdout. Redirect to a file if needed:

draw stats > design-report.txt
draw export csv

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

版本历史

共 2 个版本

  • v2.0.1 当前
    2026-03-29 19:26 安全 安全
  • v1.0.4
    2026-03-19 14:34

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,617
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,168
productivity

Thesis Helper

bytesagain3
论文写作助手。论文大纲生成、文献综述框架、摘要生成、引用格式转换、格式规范检查、答辩准备。Thesis helper with outline generation, literature review, abstract writing,
★ 1 📥 3,496