现在已支持动图编辑!

目标包括:
支持尽可能多的图像格式。
60Hz,避免阻塞超过 16ms。
无闪烁重绘。
平滑缩放。
尽可能始终使用 GPU 加速。
桌面操作系统支持。
基本图像处理。
不包括:
强大的处理(不是下一个 Photoshop)。
Web/移动平台支持。
主页:https://simp.axelkappel.se/
GitHub:https://github.com/Kl4rry/simp
一个类似元胞自动机的 Demo,可以产生波形模式。

Demo:https://tom.cv/vortex/
GitHub:https://github.com/0xTiger/vortex
WRLD 是一组派生宏,基于 Learn wgpu 教程,用于让 wgpu 代码简单、愉悦、更安全。示例:
- use wrld::Desc;#[derive(Desc)]struct Test { #[f32x2(0)] position: [f32; 2], #[f32x4(1)] color: [f32; 4]
- }
将生成:
- impl Test { pub fn desc<'a>() -> wgpu::VertexBufferLayout<'a> {
- wgpu::VertexBufferLayout {
- array_stride: std::mem::size_of::
() as wgpu::BufferAddress, - step_mode: wgpu::VertexStepMode::Vertex,
- attributes: &[
- wgpu::VertexAttribute {
- offset: 0u64,
- format: wgpu::VertexFormat::Float32x2,
- shader_location: 0u32,
- },
- wgpu::VertexAttribute {
- offset: 8u64,
- format: wgpu::VertexFormat::Float32x4,
- shader_location: 1u32,
- },
- ],
- }
- }
- }
GitHub:https://crates.io/crates/wrld
这个是 u8g2 的纯 Rust 实现。示例:
- let font = FontRenderer::new::
();let text = "embedded-graphics"; -
- font.render_aligned(
- text,
- display.bounding_box().center() + Point::new(0, 16),
- VerticalPosition::Baseline,
- HorizontalAlignment::Center,
- FontColor::Transparent(BinaryColor::On),
- &mut display,
- )
- .unwrap();

GitHub:https://github.com/Finomnis/u8g2-fonts
这个系列文章的目的是了解什么是容器,它是如何工作的,并创建一个 container 来创建和管理容器。内容如下:
1 Introduction to containers
2 Starting the project
3 Creating the skeletton
4 Birth of a child process
5 Defining the container environment
6 User namespaces and Linux Capabilties
7 Syscalls and resources restriction
8 Executing the binary
教程地址:https://litchipi.github.io/series/container_in_rust
Udemy 推出的(目前免费的)Rust 课程,内容包括:
Rust 语言基础、工具和生态。
基本原理,如变量、作用域、函数、模块、标量和复合类型、控制流、字符串、Struct、Trait、Enums 等。
使用 Rust 和系统编程有趣的 Tips 和技巧。
理解 Rust 所必需的概念,如所有权、引用和借用、内存模型,以及为什么 Rust 关注安全性、并发和速度。
共 8 个部分,35 课时,课程大纲:
导论
基础:Cargo、变量、作用域、内存安全、函数、模块系统。
基本类型和控制流:标量、复合类型、控制流、字符串。
Rust 核心概念:所有权、引用和借用。
Rust 主要内容:Struct、Trait、Collections、Enums。
终极内容:闭包、线程。
项目
课程地址:https://www.udemy.com/course/ultimate-rust-crash-course/?couponCode=BACKTOSCHOOL
From 日报小组 长琴
社区学习交流平台订阅:
Rustcc 论坛:支持 rss
微信公众号:Rust 语言中文社区