Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Pic.Draw Help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Randy




PostPosted: Wed Jun 16, 2010 9:49 pm   Post subject: Pic.Draw Help

Whenever I go from my mainscreen procedure to my gamescreen procedure, I want to keep the same image behind. However when the question begins to display, there is a white bar across the entire screen.

Posted Image, might have been reduced in size. Click Image to view fullscreen.

My problem is, how can I get rid of this white line and have the background show neatly with the text and GUI.Buttons in front all nicely?[/img]
Sponsor
Sponsor
Sponsor
sponsor
TheGuardian001




PostPosted: Wed Jun 16, 2010 9:58 pm   Post subject: Re: Pic.Draw Help

Font.Draw will draw text with no background
copthesaint




PostPosted: Thu Jun 17, 2010 11:11 am   Post subject: Re: Pic.Draw Help

because I`m different and just for fun lol

Turing:
View.Set ("graphics,offscreenonly,nobuttonbar")
put "hello world!"
View.Update
delay (1000)
var text : int := Pic.Scale (Pic.New (0, 0, maxx, maxy), maxx * 2, maxy * 2)
loop
    drawfillbox (0, 0, maxx, maxy, red)
    Pic.Draw (text, 0, 0 - maxy, picMerge)
    View.Update
    cls
end loop


:p turing fails
however nice effect if you want it to look distorted? lol
Cezna




PostPosted: Thu Jun 17, 2010 2:19 pm   Post subject: RE:Pic.Draw Help

The white bar is due to the fact that you are using put.
Instead, use:
Turing:

var font := Font.New ("Ariel:20:italic")
Font.Draw ("The question", x-coord, y-coord, font, colour)


Of course if you don't want italic, or you want a different size or different text style, just change the Font.New line.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: