[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Surfarray Question
- To: "pygame-users@xxxxxxxx" <pygame-users@xxxxxxxx>
- Subject: [pygame] Surfarray Question
- From: Ian Mallett <geometrian@xxxxxxxxx>
- Date: Thu, 12 Feb 2009 20:19:16 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 12 Feb 2009 23:19:18 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=Q1BlT3CzB8frhqQtEmt51QaTxJvmLmYutmxpxoqhYN8=; b=GyiQ1Jjcis0uQKzaXQcXlg5B7l7aCPOVVjZIuKCIvos7OFobMR1DrcRWPKzj8BR/Xq f9R5xkEqWcDdKnmUDCI283ILYbIWp3WyqVlJ/QzZOq/2jgFgzXSPJK9LNT0HhzUo0AH6 cNw7iNnFqrBE7/Xc8hvEcttrxGHaqccnIn1G0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=r/XzKYolfhlamTuM83Nuqq8txh8neU15rYIa8zpZ1MCrWfUkD15qOdjOJlkQqIHi8f meoDKPp0EtnqJtBYACsGBpkZsdSm8yWZXwyNDum3QSJOuIlx2LjJN4TVbsnhiYqmwso7 ly8bUNxrzB9I8Xd/1N15g7frRW2w8gaPerL3g=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello,
How are the values in a pygame.surfarray.array2d() array formed? I would like to convert a value from the array into a single channel value in the range [0,255]. (Assume 3 channels of equal intensity, so greyscale).
Ian