Beispiel #1
0
// Rotate is a wrapper around cairo_rotate.
func (v *Context) Rotate(angle float64) {
	C.cairo_rotate(v.native(), C.double(angle))
}
Beispiel #2
0
func (self *Surface) Rotate(angle float64) {
	C.cairo_rotate(self.context, C.double(angle))
}
Beispiel #3
0
//Rotate the current transformation matrix by θ by rotating the user-space
//axes.
//The rotation of the axes takes places after any existing transformation
//of user space.
//The rotation direction for positive angles is from the positive X axis toward
//the positive Y axis.
//
//Originally cairo_rotate.
func (c *Context) Rotate(θ float64) *Context {
	C.cairo_rotate(c.c, C.double(θ))
	return c
}