diff --git a/graphics.go b/graphics.go
index d428b36c57f881e5dc3e149ee11c69b421781a9f..eceaad8b81ef50041ba57e2adcb3406f64b883f7 100644
--- a/graphics.go
+++ b/graphics.go
@@ -13,16 +13,6 @@ type TrianglesData []struct {
 	Texture  Vec
 }
 
-// Len returns the number of vertices in TrianglesData.
-func (td *TrianglesData) Len() int {
-	return len(*td)
-}
-
-// Draw is unimplemented for TrianglesData and panics.
-func (td *TrianglesData) Draw() {
-	panic(fmt.Errorf("%T.Draw: invalid operation", td))
-}
-
 // SetLen resizes TrianglesData to len, while keeping the original content.
 //
 // If len is greater than TrianglesData's current length, the new data is filled with default
@@ -43,6 +33,16 @@ func (td *TrianglesData) SetLen(len int) {
 	}
 }
 
+// Len returns the number of vertices in TrianglesData.
+func (td *TrianglesData) Len() int {
+	return len(*td)
+}
+
+// Draw is unimplemented for TrianglesData and panics.
+func (td *TrianglesData) Draw() {
+	panic(fmt.Errorf("%T.Draw: invalid operation", td))
+}
+
 func (td *TrianglesData) updateData(offset int, t Triangles) {
 	// fast path optimization
 	if t, ok := t.(*TrianglesData); ok {