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

Username:   Password: 
 RegisterRegister   
 [Tutorials] Pictures/Images
Index -> Programming, Turing -> Turing Tutorials
Goto page Previous  1, 2, 3, 4, 5  Next
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Insectoid




PostPosted: Fri Jan 02, 2009 7:49 pm   Post subject: RE:[Tutorials] Pictures/Images

If you have a valid question, necroing a tutorial is perfectly fine. What version of Turing are you using? The original tutorial looks dated to me, written before JPGs were supported. I suggest looking through other people's code or posting your code in the help section. Then we can help better.
Sponsor
Sponsor
Sponsor
sponsor
mrt2323




PostPosted: Sun Mar 15, 2009 11:10 pm   Post subject: Re: [Tutorials] Pictures/Images

wtf is the A suppose to do after you specify the location of the pic. I can get it to work. Im noob at this.. it's only been my first 2 weeks with turing.
Insectoid




PostPosted: Mon Mar 16, 2009 8:44 am   Post subject: RE:[Tutorials] Pictures/Images

That is a graphical error. Ignore it.

use Pic.FileNew ("blahblahblah.bmp")
bigone150




PostPosted: Tue Apr 28, 2009 8:34 am   Post subject: Re: [Tutorials] Pictures/Images

var Alien : int := Pic.FileNew ("Alien.bmp")
Pic.Draw (Alien, 520, 195, 0) % 520,1



hmm that is my coding for a picture i wanna keep at coordinates 520,195... when i run it it comes up as a blank screen even when i have all my coding... there.
Also while im at it i would like to make the picture shake left right a bit as its an alien.. IF someone could reply to this fast. I would really appreciate it as its due in 45 mins..
mirhagk




PostPosted: Thu Sep 24, 2009 10:42 am   Post subject: Re: [Tutorials] Pictures/Images

Hey so i've read the tutorial on printing, I have a question though, is there any way to print a picture?
syntax_error




PostPosted: Thu Sep 24, 2009 11:07 pm   Post subject: RE:[Tutorials] Pictures/Images

You would have to write your own function for that to be remotely possible; I am certain there is no in built function with turing.
D_homes




PostPosted: Tue Jan 19, 2010 3:31 pm   Post subject: RE:[Tutorials] Pictures/Images

Is it possible to use the same image more than once at a time?
TheGuardian001




PostPosted: Tue Jan 19, 2010 4:06 pm   Post subject: Re: RE:[Tutorials] Pictures/Images

D_homes @ Tue Jan 19, 2010 3:31 pm wrote:
Is it possible to use the same image more than once at a time?

Yes.
Sponsor
Sponsor
Sponsor
sponsor
D_homes




PostPosted: Tue Jan 19, 2010 4:35 pm   Post subject: Re: RE:[Tutorials] Pictures/Images

TheGuardian001 @ Tue Jan 19, 2010 4:06 pm wrote:

Yes.


And how would one go about doing that?
TheGuardian001




PostPosted: Tue Jan 19, 2010 5:27 pm   Post subject: Re: [Tutorials] Pictures/Images

The same way you did it the first time.
code:

var myImg : int := Pic.FileNew("MyImage.jpg")
Pic.Draw(myImg,10,10,picMerge)
Pic.Draw(myImg,300,300,picMerge)
Jfenty15




PostPosted: Sat Dec 25, 2010 1:35 am   Post subject: RE:[Tutorials] Pictures/Images

K wat if ive got a forked backround looping, but continueously 'cls'ing? for me the picture just flickers Sad
and how do i post code so i can show you?
Jfenty15




PostPosted: Sat Dec 25, 2010 1:37 am   Post subject: RE:[Tutorials] Pictures/Images

here but warning this could cause siezures or epileptic reactions so beware: View.Set ("graphics:1200;800, nobuttonbar")

var i : int := 0

procedure sticky (y : real)
var stickyleft : int := Pic.FileNew ("Sticky left.GIF")
var stickyright : int := Pic.FileNew ("Sticky right.GIF")
if y = 1 then
cls
Pic.Draw (stickyleft, maxx div 2, maxy div 2, picCopy)
elsif y = 2 then
cls
Pic.Draw (stickyright, maxx div 2, maxy div 2, picCopy)
end if
end sticky

process playstuff
loop
Music.PlayFile ("Full Double Rainbow.wav")
end loop
end playstuff

process backround
loop
if Rand.Real > 0.5 then

for x : 32 .. 54
colorback (x)
cls
end for
end if
end loop
end backround


fork playstuff
fork backround
loop
for y : 1 .. 2
sticky (y)
end for
end loop
Tony




PostPosted: Sat Dec 25, 2010 1:44 am   Post subject: RE:[Tutorials] Pictures/Images

Drawing the background and foreground at the same time is just a bad idea. I'll let you figure out as to why that is.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
TokenHerbz




PostPosted: Sat Dec 25, 2010 3:17 am   Post subject: RE:[Tutorials] Pictures/Images

ya terrible, try also offscreenonly and View.Update to help smooth things over.
Jfenty15




PostPosted: Sun Dec 26, 2010 12:02 am   Post subject: RE:[Tutorials] Pictures/Images

is there a way to clear backround and for ground seperatly?
Display posts from previous:   
   Index -> Programming, Turing -> Turing Tutorials
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 4 of 5  [ 72 Posts ]
Goto page Previous  1, 2, 3, 4, 5  Next
Jump to:   


Style:  
Search: