diff --git a/docs/images/graphics-server/boot_logo.png b/docs/images/graphics-server/boot_logo.png new file mode 100644 index 000000000..ed2afc5eb Binary files /dev/null and b/docs/images/graphics-server/boot_logo.png differ diff --git a/docs/images/graphics-server/circle.png b/docs/images/graphics-server/circle.png new file mode 100644 index 000000000..4cc422d1c Binary files /dev/null and b/docs/images/graphics-server/circle.png differ diff --git a/docs/images/graphics-server/line.png b/docs/images/graphics-server/line.png new file mode 100644 index 000000000..8cfaa47e2 Binary files /dev/null and b/docs/images/graphics-server/line.png differ diff --git a/docs/images/graphics-server/rectangle.png b/docs/images/graphics-server/rectangle.png new file mode 100644 index 000000000..2ca6ded60 Binary files /dev/null and b/docs/images/graphics-server/rectangle.png differ diff --git a/docs/images/graphics-server/rounded_rectangle.png b/docs/images/graphics-server/rounded_rectangle.png new file mode 100644 index 000000000..5a4d3beb4 Binary files /dev/null and b/docs/images/graphics-server/rounded_rectangle.png differ diff --git a/docs/images/graphics-server/sleepscreen.png b/docs/images/graphics-server/sleepscreen.png new file mode 100644 index 000000000..da590ee3b Binary files /dev/null and b/docs/images/graphics-server/sleepscreen.png differ diff --git a/docs/images/graphics-server/textview.png b/docs/images/graphics-server/textview.png new file mode 100644 index 000000000..c1a592a66 Binary files /dev/null and b/docs/images/graphics-server/textview.png differ diff --git a/services/graphics-server/src/lib.rs b/services/graphics-server/src/lib.rs index 73fbb5b9f..6b59f03e1 100644 --- a/services/graphics-server/src/lib.rs +++ b/services/graphics-server/src/lib.rs @@ -44,7 +44,7 @@ impl Gfx { /// ``` /// use graphics_server::{Gfx, Line, Point}; /// let gfx = Gfx::new(&xous_names::XousNames::new().unwrap()).unwrap(); - /// let line = Line::new(Point::new(0, 0), Point::new(100, 100)); // if you want to specify a style, use Line::new_with_style + /// let line = Line::new(Point::new(100, 100), Point::new(200, 200)); // if you want to specify a style, use Line::new_with_style /// gfx.draw_line(line).unwrap(); /// gfx.flush().unwrap(); /// ``` @@ -332,8 +332,8 @@ impl Gfx { /// ``` /// use graphics_server::{Gfx, Line, Point, Rectangle}; /// let gfx = Gfx::new(&xous_names::XousNames::new().unwrap()).unwrap(); - /// let line = Line::new(Point::new(0, 0), Point::new(100, 100)); - /// let clip = Rectangle::new(Point::new(10, 10), Point::new(90, 90)); + /// let line = Line::new(Point::new(100, 100), Point::new(200, 200)); + /// let clip = Rectangle::new(Point::new(110, 110), Point::new(190, 190)); /// gfx.draw_line_clipped(line, clip).unwrap(); /// gfx.flush().unwrap(); /// ```