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-27 14:09:36 +0100 |
| commit | c899eb8386e3e976260c7769bdcd65e034959f67 (patch) | |
| tree | 09b56b642e548b4d3878abd261a6b458768bb045 /Kod/bilbana/yc4/display/put_text.m | |
| parent | 1f288867532e3929d3d90e7f2fd160c16771d7f1 (diff) | |
| download | tfyy51-c899eb8386e3e976260c7769bdcd65e034959f67.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; |
