summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/yc4/display/text.m
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2019-11-17 21:31:54 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2019-11-17 21:31:54 +0100
commit488707a834899a2aee23532e55bd662c9d3b5fd6 (patch)
tree6695c1fc246de06189a90c4dfc858437db8e412d /Kod/bilbana/yc4/display/text.m
parentd86e80be733c5081d72bbecd76aeb2b796d2e74b (diff)
downloadtfyy51-488707a834899a2aee23532e55bd662c9d3b5fd6.tar.gz
rename some functions
Diffstat (limited to 'Kod/bilbana/yc4/display/text.m')
-rw-r--r--Kod/bilbana/yc4/display/text.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/Kod/bilbana/yc4/display/text.m b/Kod/bilbana/yc4/display/text.m
new file mode 100644
index 0000000..e31ecc3
--- /dev/null
+++ b/Kod/bilbana/yc4/display/text.m
@@ -0,0 +1,7 @@
+function [pkg] = text(x, y, justification, text)
+arg1 = [mod(x, 256), x ./ 256, mod(y, 256), y ./ 256];
+arg2 = text;
+arg3 = 0;
+
+pkg = get_package(strjoin({'Z', justification}, ''), [arg1 double(arg2) arg3]);
+end