Skip to content

Fade the image to the specified color outside of a defined circle. The colors of pixels inside the circle should be preserved, the colors outside of the circle but inside of a circle of radius 2r should be interpolated proportionally, the pixels outside of 2r circle should be of a specified color.

Notifications You must be signed in to change notification settings

MusabAlsaifi/x86

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x86

General Info:

void fadecircle(void *image, int width, int height, int xc, int yc, int radius, unsigned int color)

The program contains two source files: main program written in C and assembly module callable from C. Use NASM assembler (nasm.sf.net) to assemble the assembly module. Use C compiler driver to compile C module and link it with the output of assembler. The C program uses command line arguments to supply the parameters to an assembly routine and perform all I/O operations. No system functions nor C library functions are called from assembly code.

Setup:

$ make
$ ./test test.bmp output.bmp

About

Fade the image to the specified color outside of a defined circle. The colors of pixels inside the circle should be preserved, the colors outside of the circle but inside of a circle of radius 2r should be interpolated proportionally, the pixels outside of 2r circle should be of a specified color.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published