Psycrow101 / Rainbow-Sprite

How to make a color iridescent sprite in Half-Life

Home Page:https://next21.ru/2017/05/rainbow-sprite-%D0%BA%D0%B0%D0%BA-%D1%81%D0%B4%D0%B5%D0%BB%D0%B0%D1%82%D1%8C-%D0%BF%D0%B5%D1%80%D0%B5%D0%BB%D0%B8%D0%B2%D0%B0%D1%8E%D1%89%D0%B8%D0%B5%D1%81%D1%8F-%D1%81%D0%BF%D1%80%D0%B0%D0%B9%D1%82/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rainbow Sprite

Rainbow Sprite is a simple console application that allows you to animate the Half-Life sprite, adding the effect of color transfusion.

Video tutorial

How to use

Using the command line, launch the application with the following arguments: sprite_name.spr color_row_value "red green blue" "red green blue" ...

  • color_row_value is the number of gray colors for one frame of animation. Simply put, this is picture quality. It is better to leave in the range from 5 to 10. Too much value is better not to set - it depends on the number of received frames.
  • "red green blue" is the keyframe color. To loop the animation, repeating the first frame at the end is unnecessary.

Examples

  • RainbowSprite my_sprite1.spr 8 "255 0 255" "128 0 0"
  • RainbowSprite my_sprite2.spr 5 "255 0 0" "0 0 64" "0 255 0"