Antialiasing kind of works on circles drawing each pixel individually

This commit is contained in:
2025-04-28 00:02:23 -07:00
parent 293e03e500
commit e81ff0be66
2 changed files with 42 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ impl WlClient {
self.shm_pool = Some(shm::ShmPool::new(width, height, self.current_id)?);
self.shm_pool.as_mut().unwrap().write(&vec![0xffff0000; width * height], 0);
self.shm_pool.as_mut().unwrap().rectangle(50, 50, 50, 50, 0xff00ff00);
self.shm_pool.as_mut().unwrap().circle(200, 200, 50, 0xff0000ff);
self.shm_pool.as_mut().unwrap().shitty_circle(200, 200, 20, 0xff0000ff);
self.shm_pool.as_mut().unwrap().rounded_rectangle(400, 200, 200, 100, 14, 0xffffff00);
let object = self.shm_id.ok_or(UnsetErr("shm_id".to_string()))?;