Jump to content

Photo

gr. 8 + 16 does not work with graphics/text with fastbasic


2 replies to this topic

#1 funkheld OFFLINE  

funkheld

    Moonsweeper

  • 265 posts

Posted Fri Sep 14, 2018 7:43 AM

Hi good afternoon.
gr. 8 + 16 does not work with graphics and text with
fastbasic
 
greeting

 

 

' Graphics sample
gr. 8+16
color 1
 
' Sample line drawing
for i=0 to 100 step 3
 plot 100-i,0
 dr. 0,i
next i
 
' Plotting a function (in FP)
for i=120 to 300
 y% = i * 0.05 - 11
 y% = y% * y% * (y% + 5)
 plot i, 160 - int(y%)
next i
 
print "test"
 
repeat
until Key()


#2 baktra OFFLINE  

baktra

    Dragonstomper

  • 512 posts
  • Location:Czech republic

Posted Fri Sep 14, 2018 8:03 AM

I would expect that the print"test" statement will kick you back to graphics 0, but that's how it should work.

 

GRAPHICS 8+16 will switch to graphics mode 8 - finest resolution and +16 indicates no text window (four text lines at the bottom).
Therefore the PRINT statement has no choice, but to switch back to GRAPHICS 0.

 

You cannot use the print statement to print text to a graphics mode. FastBasic doesn't have a special command that would allow you to draw text to a graphics mode.

 

Next time, please be more specific when describing what exactly happened (symptoms). 


Edited by baktra, Fri Sep 14, 2018 8:13 AM.


#3 funkheld OFFLINE  

funkheld

    Moonsweeper

  • Topic Starter
  • 265 posts

Posted Fri Sep 14, 2018 8:40 AM

hello, thanks.






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users