diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-10-20 14:36:29 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-10-20 14:36:29 +0200 |
| commit | c8d4d70b17cd7a56dd48cb94b3831e52f8d56dc9 (patch) | |
| tree | 4a0e1b2864cae60f260101644c176ac2d5ab80d3 /Kod/bilbana/yc4/display/put_text.m | |
| parent | 1111d306f96fbe7d1608e1eaa156680fd5b21ecf (diff) | |
| parent | c4033991d6363441bf4697608034edb39ff50fe5 (diff) | |
| download | tfyy51-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.m | 9 |
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 |
