Register

Canvas Scribble

An Add-on Module for Foundry Virtual Tabletop

Author: 星尘尘 Project: Source Foundry Versions 13 to 14 (Verified 14) Last Updated 13 hours, 24 minutes ago
AI Usage Explanation

the main coding, design, and code testing was done by me.

Freehand drawing, annotations, and a laser pointer for Foundry VTT (v13–v14). Draw on the map (moves with pan and zoom, optionally saved to the scene) or on the screen (pinned to the viewport, fades out automatically).

Tools

Strokes stream live to other players (~33 ms batches, with optional name tags), and late joiners receive any active temporary marks. Lifetimes and fades run on Foundry's server clock so marks disappear at the same moment for everyone. Each user has their own undo/redo stack and a scoped clear menu (clearing others' marks or permanent annotations always asks for confirmation). Mouse, touch, and stylus are all supported, with hardware pressure/tilt, palm rejection, and velocity-based simulation when no pen is present.

Brush Studio & Dynamics

Click the Studio button on the palette to tune a brush beyond its defaults: opacity, blend mode (normal, multiply, screen, overlay, add), nib angle and angle mode (fixed, follow stroke, pen tilt, pen twist), flatness, corner radius, hardness, flow, spacing, scatter, and paper grain. Modified brushes can be saved as custom presets and exported or imported as JSON.

Turn on Custom dynamics to drive size, flow, hardness, angle, flatness, scatter, or spacing with editable response curves. Available sensors are pressure, tilt, speed, direction (absolute, relative to start, or across the nib), and random (per dab, per stroke, or smooth noise). One parameter can combine several sensors, and the preview doubles as a test pad. Strokes carry their dynamics so they look the same on every client; strokes without custom dynamics use the original brush path unchanged.

Drawing Aids

The Aids popover on the palette covers input smoothing and canvas guides:

Map Layers

Map marks live inside Foundry's three stacking planes (Below tokens, Above tokens, and Top). Open the floating Layers panel to organize any plane into nested layers and groups (up to 128 nodes and 4 levels deep per scene):

Scenes without custom layers skip the extra compositing passes and render identically to a flat plane.


Foundry VTT(v13–v14)的即时绘制、标注与激光笔模块。支持两种绘制空间:画在地图上(随画布平移缩放,可永久保存进场景),或画在屏幕上(固定在视口内,到时间自动淡出)。

工具

绘制过程会按约 33 ms 分批实时同步给同场景玩家(可选显示名牌),后进入场景的人也能收到当前仍在显示的临时标记。所有存续与淡出时间都以 Foundry 服务器时钟为准,大家会在同一时刻看到它消失。每位用户有独立的撤销/重做栈和分级清除菜单(清除他人或永久标注时会二次确认)。支持鼠标、触控与数位笔,有数位笔时启用硬件压感、倾斜和防误触,无压感设备则按速度模拟。

笔刷工作室与动力学

点击调色板上的笔刷工作室按钮,可以按笔刷微调不透明度、混合模式(正常、正片叠底、滤色、叠加、线性减淡)、笔尖角度与角度驱动(固定、跟随轨迹、笔倾角、笔杆旋转)、扁平比、圆角、硬度、流量、间距、散布与纸纹肌理。调好的笔刷可以存为自定义预设,也支持 JSON 导入导出。

打开自定义动力学后,可以把压感、倾斜、速度、方向(绝对方向、相对起笔、相对笔尖)与随机(逐点、逐笔、平滑噪声)通过可编辑的响应曲线,映射到尺寸、流量、硬度、角度、扁平比、散布、间距上。同一参数可以叠加多个传感器,上方预览区可以直接试笔。自定义动力学随笔画同步,各客户端看到的效果一致;未开启时仍走笔刷原来的渲染路径。

绘画辅助

调色板上的绘画辅助里有防抖过滤和画布辅助线:

地图图层

地图标记放在 Foundry 的三个堆叠平面里(Token 下方、Token 上方、最顶层)。打开浮动图层面板后,可以在任意平面内新建和管理图层与图层组(单场景最多 128 个节点、嵌套 4 层):

未建自定义图层的场景不走额外合成通道,渲染开销与原先一致。

Categories

Available Versions

  1. Version 1.1.0

    13 hours, 24 minutes ago
    Foundry Version 13 - 14 (Verified 14) Manifest URL Read Notes