diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-10-27 14:09:36 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-10-30 20:01:42 +0100 |
| commit | 9be4f7bff82a4a973c230dcfb43fabc07f1bf59d (patch) | |
| tree | 60e2a37e3d91a0ebde35ee0766268cd38bbb7056 /Kod/bilbana/yc4/display/put_text.m | |
| parent | a7c9a75611820dc37f891d2f95fdb248cf428a1d (diff) | |
| download | tfyy51-9be4f7bff82a4a973c230dcfb43fabc07f1bf59d.tar.gz | |
First wave of function
Diffstat (limited to 'Kod/bilbana/yc4/display/put_text.m')
| -rw-r--r-- | Kod/bilbana/yc4/display/put_text.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kod/bilbana/yc4/display/put_text.m b/Kod/bilbana/yc4/display/put_text.m index 5b80192..22871e3 100644 --- a/Kod/bilbana/yc4/display/put_text.m +++ b/Kod/bilbana/yc4/display/put_text.m @@ -1,7 +1,7 @@ function [pkg] = put_text(x, y, justification, text) - code = double(strjoin({'Z', justification}, '')); + code = strjoin({'Z', justification}, ''); - arg1 = [x, 0, y, 0]; + arg1 = [mod(x, 256), x ./ 256, mod(y, 256), y ./ 256]; arg2 = text; arg3 = 0; |
