Search found 20 matches

by heaven6502
Fri Jul 25, 2014 4:11 pm
Forum: Coding Questions
Topic: Working with Images and Screen Graphics
Replies: 9
Views: 3501

Re: Working with Images and Screen Graphics

I was struggling yesterday with similar problem...

try InitSprite() before opening screen...

InitSprite()

CreateImage(0, 800, 480)
OpenWindow(0,0,0,800,480,"Fractal Lines",#PB_Window_SystemMenu)
OpenWindowedScreen(WindowID(0),0,0,800,480)
by heaven6502
Thu Jul 24, 2014 7:15 pm
Forum: Coding Questions
Topic: Drawing Window mode & sync
Replies: 4
Views: 1355

Re: Drawing Window mode & sync

fcking cool. I overread the startdrawing(screenoutput()) instead of imageoutput... now works!
by heaven6502
Thu Jul 24, 2014 6:39 pm
Forum: Coding Questions
Topic: Drawing Window mode & sync
Replies: 4
Views: 1355

Re: Drawing Window mode & sync

InitKeyboard()
InitSprite()

CreateImage(0, 800, 480)
OpenWindow(0,0,0,800,480,"Fractal Lines",#PB_Window_SystemMenu)
OpenWindowedScreen(WindowID(0),0,0,800,480)
;StartDrawing(ScreenOutput())
frame=0
z0.w =100

camx.w=0
camy.w=-40
camz.w=0

Repeat
ClearScreen(RGB(0,255,0))

For i=0 To max ...
by heaven6502
Thu Jul 24, 2014 6:32 pm
Forum: Coding Questions
Topic: Drawing Window mode & sync
Replies: 4
Views: 1355

Re: Drawing Window mode & sync

well... actually 5.11 tells me to use initsprite() before?
by heaven6502
Thu Jul 24, 2014 3:46 pm
Forum: Coding Questions
Topic: Drawing Window mode & sync
Replies: 4
Views: 1355

Drawing Window mode & sync

Clearing screen or what is best practice having

I am opening a window with:

If CreateImage(0, 640, 480) And OpenWindow(0,0,0,640,480,"Fractal Lines",#PB_Window_SystemMenu)
...

and do simple 2d drawing (linexy) with
StartDrawing(ImageOutput(0))
StopDrawing()

but how can I clear the window and ...
by heaven6502
Mon May 12, 2014 7:03 pm
Forum: Coding Questions
Topic: loading images and mixing
Replies: 18
Views: 1382

Re: loading images and mixing

thx Bernd... got it... :)

good thing is that when inserting plot or line that the coordinates are based on the active canvas.
by heaven6502
Mon May 12, 2014 4:04 pm
Forum: Coding Questions
Topic: loading images and mixing
Replies: 18
Views: 1382

Re: loading images and mixing

ok...

so how would you then solve my potential task?

load different bitmaps on 1 screen (so I can see them). and then getting pixel values with a function and draw on the same screen all at aonce?
by heaven6502
Mon May 12, 2014 4:02 pm
Forum: Coding Questions
Topic: loading images and mixing
Replies: 18
Views: 1382

Re: loading images and mixing

when I am using plot/point in that example Purebasic crashes.
by heaven6502
Mon May 12, 2014 3:56 pm
Forum: Coding Questions
Topic: loading images and mixing
Replies: 18
Views: 1382

Re: loading images and mixing

thanks... got it... could not test right now following...

when I do a color=point(x,y) I get the right color doesn't matter if I am over imagegadget1 or 2?
by heaven6502
Mon May 12, 2014 12:11 pm
Forum: Coding Questions
Topic: loading images and mixing
Replies: 18
Views: 1382

Re: loading images and mixing

and how would this work with imagegadget?
by heaven6502
Mon May 12, 2014 9:57 am
Forum: Coding Questions
Topic: loading images and mixing
Replies: 18
Views: 1382

Re: loading images and mixing

thx. seem to work... :) I thought that sprite is for "sprites" only ;)

one of my mistake was not saving the source code so the path to the pic did not work (but compiler did not throw an error...)
by heaven6502
Mon May 12, 2014 9:33 am
Forum: Coding Questions
Topic: loading images and mixing
Replies: 18
Views: 1382

Re: loading images and mixing

Code: Select all

OpenScreen(1024,768,32,"test",RGB(0,0,0))
texture=LoadImage(#PB_Any,"neptunemap.jpg")
StartDrawing(ScreenOutput())
   DrawImage(ImageID(texture), 0, 0)
   StopDrawing()
Repeat:Until 1=0

won't work...
by heaven6502
Mon May 12, 2014 9:31 am
Forum: Coding Questions
Topic: loading images and mixing
Replies: 18
Views: 1382

Re: loading images and mixing

thx. but I only get a white screen on OSX...

can not be so difficult... ;) Using 5.22.
by heaven6502
Mon May 12, 2014 9:08 am
Forum: Coding Questions
Topic: loading images and mixing
Replies: 18
Views: 1382

Re: loading images and mixing

[img]
http://formatwar.net/forums/download/fi ... beaba4e79e
[/img]

so actually I want to place a texture where the "bars" are...
by heaven6502
Mon May 12, 2014 8:41 am
Forum: Coding Questions
Topic: loading images and mixing
Replies: 18
Views: 1382

loading images and mixing

I am using PureBasic for rapid development and testing for my 8bit 6502 projects.

What I am trying now for weeks is

having a screen open for gfx output, loading 2 images which I want to copy on the openened screen. these are textures where I refer to with point(x,y).


OpenScreen(640,480,32,"test ...