SDL :: »ö±ò

SDL :: »ö»óÀº SDL Perl È®ÀåÀÚÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

SDL :: »ö±ò ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • David J. Goehrig
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~dgoehrig/SDL_Perl-2.1.3/lib/SDL/Color.pm

SDL :: »ö±ò ű×


SDL :: »ö±ò ¼³¸í

SDL :: »ö»óÀº SDL Perl È®ÀåÀÚÀÔ´Ï´Ù. SDL :: »ö»óÀº SDL Perl Extension.Synopsis $ color = »õ SDL :: »ö»ó (-r => 0xde, -g => 0xad, -b => c0); $ color = new sdl :: color -surface => $ ¾Û, -pixel => $ app-> Çȼ¿ ($ x, $ y); $ color = new sdl :: color - color => sdl :: newColor (0xFF, 0xAA, 0xDD); SDL :: »ö»óÀº SDL :: COLOR.NEW¿Í µ¿ÀÏÇÑ ÀÎÅÍÆäÀ̽º¿Í µ¿ÀÏÇÑ ÀÎÅÍÆäÀ̽º¸¦ »ç¿ëÇÏ¿© µ¶¸³Àû ÀÎ »ö Ç¥ÇöÀ» Ç¥½ÃÇÏ´Â ·¡ÆÛÀÔ´Ï´Ù. -color =>) sdl :: Color :: A-Colod ¿É¼ÇÀ» »ç¿ëÇÏ¿© »õ·Î ÀÎÇØ Àü´Þ µÈ sdl_color * .new (-r =>, -g =>, -b =>) sdl :: »ö»óÀ» ÂüÁ¶ÇÏ´Â »õ °´Ã¼¸¦ »ý¼ºÇÕ´Ï´Ù. : -r, -g, -b ¿É¼ÇÀ» »ç¿ëÇϸé sdl_color ±¸Á¶¿Í ÁöÁ¤µÈ °´Ã¼°¡ ÁöÁ¤µÈ vales.new (-pixel =>, -surface =>)°¡ÀÖ´Â ¿¬°üµÈ ¿ÀºêÁ§Æ®¸¦ ¸ðµÎ »ý¼ºÇÕ´Ï´Ù sdl :: »ö»ó :: »õ·Î¿î -pixel -surface ¿É¼ÇÀº ÁÖ¾îÁø -SurfaceÀÇ format.r (), G (), G ()¿¡ ´ëÇØ -pixel¿¡¼­ Àü´Þ µÈ Á¤¼ö °ª°ú ¿¬°üµÈ R, G, B °ªÀ» »ç¿ëÇÏ¿© SDL_COLOR *¸¦ »ý¼ºÇÕ´Ï´Ù. ÆĶõ»ö]) SDL :: COLOR :: R, SDL :: COLLE :: G, SDL :: COLLE :: B´Â Àû»ö, ³ì»ö ¹× ÆĶõ»ö ±¸¼º ¿ä¼ÒÀÇ Á¢±Ù ÀÚ ¹æ¹ýÀÔ´Ï´Ù. »ö»ó °ªÀº ¹ÙÀÌÆ® °ª (0-255)À» °¢ function.pixel (Ç¥¸é)À¸·Î Àü´ÞÇÏ¿© ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. Çȼ¿ (Ç¥¸é) SDL :: COLLE :: PIXELÀº SDL :: Surface Object ¹× R, G, B °ªÀ» »ç¿ëÇÏ°í Á¤¼ö¸¦ ¹ÝȯÇÕ´Ï´Ù. ÁÖ¾îÁø Ç¥¸é¿¡ °¡Àå °¡±î¿î »ö»óÀÇ Ç¥Çö. ¿ä±¸ »çÇ× : ¡¤ Perl.


SDL :: »ö±ò °ü·Ã ¼ÒÇÁÆ®¿þ¾î