跳至內容

文檔:Locomotive BASIC color bars.gif

頁面內容不支援其他語言。
出自維基百科

原始文件(841 × 586 像素,檔案大細:58 KB ,MIME類型:image/gif、循環、128 畫格、11秒)

箇隻檔案來自維基共享資源,佢可能拕應用嘚別嗰項目。 佢嗰檔案描述頁面顯示嘚下頭。

摘要

簡話
English: An Amstrad CPC emulated in MAME running a short Locomotive BASIC demo program which displays color bars similar to SMPTE color bars or EBU colour bars.
日期
來源 自己的作品
作者 Morn

Locomotive BASIC program

10 mode 0
20 ink 1,26:ink 2,24:ink 3,20:ink 4,18
30 ink 5,8:ink 6,6:ink 7,2:ink 8,0
40 for i=1 to 8
50 paper i
60 print space$(40);
70 next

Program notes

  • Key words are printed in uppercase when the program is output with "list". But entering code is usually done in lowercase.
  • line 10: screen mode 0 is used (16 colours; 20x25 characters)
  • lines 20/30: set up colour palette; note that multiple instructions can be combined on a line
  • lines 40 to 70: a "for" loop over i
  • line 50: set the paper (background) colour to i
  • line 60: print 40 spaces (= 2 lines); space$ is a built-in function that returns a string
  • When the program ends, the "Ready" prompt is white-on-black because the current foreground (pen) colour, which is 1, had been set to white ("ink 1,26"). The background colour is 8 after the loop and "ink 8,0" had set that to black previously. See File:Amstrad CPC ink numbers.png for a chart of Amstrad ink numbers.

授權

我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
Creative Commons CC-Zero 此檔案在創用CC CC0 1.0 通用公有領域貢獻宣告之下分發。
在此宣告之下分發本作品者,已依據各國著作權法,在全世界放棄其對本作品所擁有的著作權及所有相關相似的法律權利,從而將本作品貢獻至公有領域。您可以複製、修改、分發和演示該作品,用於任何商業用途,所有這些都不需要請求授權。

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容 繁體中文

授權條款 繁體中文

CC0 繁體中文

檔案來源 Chinese (Taiwan) (已轉換拼寫)

成立或建立時間 繁體中文

24 12 2023

多媒體型式 繁體中文

image/gif

檔案歷史

按到日期/時間去眵吖許時間有過嗰檔案。

日期/時間縮圖尺寸用戶說明
眼前2023年12月24日 (禮拜天) 20:15到2023年12月24日 (禮拜天) 20:15嗰縮圖版本841 × 586(58 KB)MornUploaded own work with UploadWizard

冇頁面連結到箇隻檔案。

全域文件用途

以下其他 wiki 使用了這個檔案: