diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-11-13 19:55:57 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-11-13 19:55:57 +0100 |
| commit | 4994443c6292e1edb428c5f0dbd3d2f0b9d0e519 (patch) | |
| tree | 17b6ac52ddba333d4c05e5e20a7b6002cd9d5da4 /Kod/bilbana/yc4/display/put_text.m | |
| parent | f78a9877d7efe5c4b1bb6fa6b5ab9ddbb8a833ca (diff) | |
| parent | 0d761ebf3811ae20d74bbce8f4988c3a7ab8349d (diff) | |
| download | tfyy51-4994443c6292e1edb428c5f0dbd3d2f0b9d0e519.tar.gz | |
Merge branch 'display-functions' into display-io
Diffstat (limited to 'Kod/bilbana/yc4/display/put_text.m')
| -rw-r--r-- | Kod/bilbana/yc4/display/put_text.m | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Kod/bilbana/yc4/display/put_text.m b/Kod/bilbana/yc4/display/put_text.m index 22871e3..8455c83 100644 --- a/Kod/bilbana/yc4/display/put_text.m +++ b/Kod/bilbana/yc4/display/put_text.m @@ -1,9 +1,7 @@ function [pkg] = put_text(x, y, justification, text) - code = strjoin({'Z', justification}, ''); +arg1 = [mod(x, 256), x ./ 256, mod(y, 256), y ./ 256]; +arg2 = text; +arg3 = 0; - arg1 = [mod(x, 256), x ./ 256, mod(y, 256), y ./ 256]; - arg2 = text; - arg3 = 0; - - pkg = get_package(code, [arg1 double(arg2) arg3]); +pkg = get_package(strjoin({'Z', justification}, ''), [arg1 double(arg2) arg3]); end |
