Search found 9 matches

by Julu Julu
Fri Jan 06, 2006 9:18 am
Forum: PSP Lua Player Development
Topic: 360 degree rotation
Replies: 8
Views: 3886

Hi. I wrote this code here. It is not fast. Perhaps, someone can make it fast. :) System.usbDiskModeActivate() red = Color.new(255, 0, 0) background = Image.load("backgr.png") testImage= Image.load("testImage.png") r...
by Julu Julu
Sat Dec 03, 2005 5:45 am
Forum: PSP Lua Player Development
Topic: color = image:pixel(x,y) to array ?
Replies: 3
Views: 2580

Thanks alexis.
The first Code is exactly which I searched
by Julu Julu
Thu Dec 01, 2005 5:26 pm
Forum: PSP Lua Player Development
Topic: Video Playback
Replies: 15
Views: 7272

@Shine
"This code really sucks :-) What do you do when you have 1000 images?"
:)


You can load the images in an Array.

barneyPics = { }
for i=1, 1000 do
barneyPics = Image.load("barney" .. i .. ".png")
end
by Julu Julu
Thu Dec 01, 2005 4:13 pm
Forum: PSP Lua Player Development
Topic: color = image:pixel(x,y) to array ?
Replies: 3
Views: 2580

color = image:pixel(x,y) to array ?

Hi,

i have an Array.

Code: Select all

a = {} 
    for i=0,10 do
         color = image:pixel(x,y)
         newColor= color:colors()
	      a[i] = newColor ???
    end
How can i copy getColor to the array?
by Julu Julu
Sun Nov 13, 2005 6:27 am
Forum: PSP Lua Player Development
Topic: goto in Luaplayer ?
Replies: 2
Views: 2074

goto in Luaplayer ?

Hi.

In the programming language C, there is an instruction -> goto

Has Luaplayer this instruction ?

Example:

Code: Select all

for x=0,100 do
   for y=0,100 do
      if y == 50 then
         goto abc
      end
   end
end

abc:
...
How can i break the 2 for's?
by Julu Julu
Thu Nov 10, 2005 5:03 pm
Forum: PSP Lua Player Development
Topic: rotateImage ?
Replies: 4
Views: 2873

Thanks :)
by Julu Julu
Thu Nov 10, 2005 1:01 pm
Forum: PSP Lua Player Development
Topic: rotateImage ?
Replies: 4
Views: 2873

Where I must set sin/cos ? function rotateImage(theImage) newImage = Image.createEmpty(theImage:height(), theImage:width()) for x = 1, theImage:width() do for y = 1, theImage:height&#4...
by Julu Julu
Thu Nov 10, 2005 10:02 am
Forum: PSP Lua Player Development
Topic: rotateImage ?
Replies: 4
Views: 2873

rotateImage ?

Hi. I found this function here. function rotateImage(theImage) newImage = Image.createEmpty(theImage:height(), theImage:width()) for x = 1, theImage:width() do for y = 1, theImage:height&a...
by Julu Julu
Wed Nov 09, 2005 9:06 am
Forum: PSP Lua Player Development
Topic: "not enough memory" ?
Replies: 7
Views: 3767

"not enough memory" ?

Hi.

I made an Array in LuaPlayer.

Code: Select all

for i=0,3000 do		
Array[i] ={}
   for j=0,3000 do
     Array[i][j] = 555555
   end
end

But if I start the program, then I get this error message

Code: Select all

not enough memory