gioser

tawasuyu/llimphi

Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.

Rust 660Markdown 302TOML 157RON 312382 Definitions

⎇ main shared/foreign-lottie/src/schema/layers/solid.rs Rust · 21 lines · 593 B History Who touched what raw

chore: refresco desde el monorepo — 27 crates nuevos (anim, lottie, svg, mesh, image, layer, test, wire-view, widgets rag-sidebar/router/lazy-list/rive-button) y sync de los 95 existentes 93253cc22 · Sergio ·

1// Copyright 2024 the Velato Authors
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3
4use super::visual::VisualLayer;
5use serde::{Deserialize, Serialize};
6
7/// Has an array of shapes
8#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
9pub struct SolidLayer {
10    /// Visual layer data
11    #[serde(flatten)]
12    pub visual_layer: VisualLayer,
13    #[serde(rename = "sw")]
14    pub width: f64,
15    #[serde(rename = "sh")]
16    pub height: f64,
17    /// Color of the layer, unlike most other places, the color is a #rrggbb
18    /// hex string
19    #[serde(rename = "sc")]
20    pub color: String,
21}