Antialiasing kind of works on circles drawing each pixel individually
This commit is contained in:
@@ -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()))?;
|
||||
|
||||
Reference in New Issue
Block a user