summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/yc4/display/put_text.m
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2019-10-20 14:36:29 +0200
committerGustav Sörnäs <gusso230@student.liu.se>2019-10-20 14:36:29 +0200
commitc8d4d70b17cd7a56dd48cb94b3831e52f8d56dc9 (patch)
tree4a0e1b2864cae60f260101644c176ac2d5ab80d3 /Kod/bilbana/yc4/display/put_text.m
parent1111d306f96fbe7d1608e1eaa156680fd5b21ecf (diff)
parentc4033991d6363441bf4697608034edb39ff50fe5 (diff)
downloadtfyy51-c8d4d70b17cd7a56dd48cb94b3831e52f8d56dc9.tar.gz
Merge branch 'freeze_gustav' into freeze
# Conflicts: # Kod/bilbana/yc4/main.m
Diffstat (limited to 'Kod/bilbana/yc4/display/put_text.m')
-rw-r--r--Kod/bilbana/yc4/display/put_text.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/Kod/bilbana/yc4/display/put_text.m b/Kod/bilbana/yc4/display/put_text.m
new file mode 100644
index 0000000..5b80192
--- /dev/null
+++ b/Kod/bilbana/yc4/display/put_text.m
@@ -0,0 +1,9 @@
+function [pkg] = put_text(x, y, justification, text)
+ code = double(strjoin({'Z', justification}, ''));
+
+ arg1 = [x, 0, y, 0];
+ arg2 = text;
+ arg3 = 0;
+
+ pkg = get_package(code, [arg1 double(arg2) arg3]);
+end