shithub: slug

Download patch

ref: 96cd321a31e76bd368ec6a6c73509701b4a14f64
parent: e792391a75a796019b2d4634c57fe03570471b71
author: phil9 <[email protected]>
date: Fri Dec 2 08:35:16 EST 2022

rename transpose() to translate()

	this makes the API identical to Processing

--- a/api.c
+++ b/api.c
@@ -415,7 +415,7 @@
 }
 
 int
-ctranspose(lua_State *L)
+ctranslate(lua_State *L)
 {
 	int x, y;
 
@@ -500,7 +500,7 @@
 	registerfunc(L, "arc", carc);
 	registerfunc(L, "triangle", ctriangle);
 	registerfunc(L, "quad", cquad);
-	registerfunc(L, "transpose", ctranspose);
+	registerfunc(L, "translate", ctranslate);
 	registerfunc(L, "rotate", crotate);
 	registerfunc(L, "radians", cradians);
 	registerfunc(L, "pushMatrix", cpushmatrix);