Sunday, February 1, 2015

Create a Basic Animation to show the Bubble effect.


Create a Basic Animation to show the Bubble effect.

1.Open a new flash document, go to modify & choose document & change the background color blue.

2.Select layer1 & draw the circle using oval tool at this time stroke color & fill color must be white select the circle & go to the fill color option & switch of the color & using brush tool give the dot or small mark on the oval then select the layer & copy the bubble & past on or more bubble on to the same layer.

3.Go to the modify option, in modify go to the timeline & in timeline select  the distribute to layers

4.At this time all the bubbles are distributed in each single layer & also all frame1 are selected.

5.Right click on frame1 head & select create motion tween.

6.Select any frame as per your choice & pressf6 (insert keyframe) & change the position of bubble as per your choice.

7.Do the same procedure on each layer of bubble.

8.Save your work & test the movie.

Create a basic Animation to show the blur transition effect, Blur effect on vector:-


Create a basic Animation to show the blur transition effect, Blur effect on vector:-

1.    Open a new document in this select the layer1 & draw a circle from oval tool & using selection tool change the color & type radial from the color mixer.

2.    Select the circle using selection tool then right click on circle go to the timeline effects & in timeline effect go to the effect->select blur or go to the insert menu select the timeline effects->effects->blur

3.    When we click on the blur at this time blur property window is open to select the blur property as per your choice & click OK button.

4.    When we click on the OK button at this time layer1 is automatically generated in timeline.

5.    Save your work(ctrl+s) & test the movie(Ctrl+enter)



Blur Effect on Image


Step 1:-Import an image and create a movie clip
    1)Open flash, select new(flash document)
    2)Import the image you would like to blur by clicking on file(Import to stage &     select the image)
    3)Select the image on the  stage & choose modify/convert to symbol and name the     symbol blur & choose movie clip as type

Step 2:-Create the blur effect
    1)Select the blur symbol on the stage
    2)In the properties inspector, choose the filters tab click on the  ‘+’ icon &     choose  blur
    3)Choose 100 for blur X & blur Y and quality as medium blur filter

Step 3:-Create the Animation
    1)In the timeline window  right click on the frame choose insert keyframe select the     movie clip & change the blur filter X & Y values to 0 to remove the blur effect &     click on in between 1 to 50 frame & right click & select the create motion tween.

Step 4:-Press ctrl+Enter to view your animation

Create a basic animation to show the Screensaver effect

Create a basic animation to show the Screensaver effect

1.Open a new flash document in this select layer1 & write a text ‘screen saver’ from the text tool & also choose color to text from fill color option as per your choice.

2.Select frame10 & press F6 (insert keyframe) & change or move the position of the text then again select next frame as per your choice & press F6 (insert keyframe) & also change or move the position of the text.

3.Continue this process as per your choice.

4.Save your work(ctrl+s) & test the movie(ctrl+enter)

Create a basic animation to show the smoke effect

Create a basic animation to show the smoke effect :-

1.In this animation on layer1 draw the factory diagram or graphic using line & rectangle tool as shown in the following diagram

2.select layer1 & click on the frame40 & press f6(Insert to keyframe) or right click on frame 40 & select(Insert a keyframe)

3.Insert a new layer i.e. layer2 from the Timeline then click on frame1 head & draw the small dot on to the factory pipe using  brush tool

4.Then click on frame 40 head & press f6(Insert keyframe) & draw a big dot using the brush tool

5.Then click on frame1 head & choose shape tween from the properties inspector option

6.Save your work (ctrl+s) & text the movie.


Create a basic animation to show the blinking stars

Create a basic animation to show the blinking stars

1.In this animation first select the layer1 then draw a star or take a star on to the stage.

2.Insert a layer2 & again draw another star on to the stage , here insert a layers & draw a star on each single layer as per your choice.

3.Select each layer * press f7(Insert a blank key-frame)

4.Press f5(insert frame) on each layer as per your choice save your work(ctrl+s)

5.Test a movie(ctrl+Enter)

Create a basic Animation to show the floating background

Create a basic Animation to show the floating background

1.In this draw the rectangle from the rectangle tool on the stage using free-transform tool fill complete stage to the rectangle & sleet the color as per your choice from the fill color option

2.Click on frame10 & press f6 or right click on frame 10 & select insert keyframe or select the color from fill color option(as per your choice)

3.Select the frame & press f6 & select the color as per your choice)

4.Save your work & test the movie.

Create a basic Image slide Animation to show either fading in & out

Create a basic Image slide Animation to show either fading in & out

1.Open a new file, go to file -> new a screen called new document select flash document & click on OK go to modify->document a file size of 300px by 200px.

2.Select the bitmap pic that you want to fade in & fade out from your picture file, select file->import to library from the menu bar a screen name import to library will open choose the file name &click on open. Repeat these steps for the entire bitmap picture.

3.Drag the pic from library panel to the stage select the picture by clicking on it go to modify->convert to symbol from menu bar a dialog box named create new symbol will appear. Give the name as pic-mc select ‘movie clip’ click on OK.

4.Click on your movie clip go to frame15 insert a key-frame right click on layer1 in the middle of the frame1 to frame15 the frames will become black select create motion tween an arrow from frame1 to frame15 will appear. Again click on frame 30 Insert a key-frame a second arrow will paper automatically.

5.Click on frame1 here we will give the fade in effect select the picture by clicking on it. Go to properties in the panel below color->alpha give 0% to it. Your pic has faded in click on frame 30.here we will give the fade in effect select the picture by clicking on it. Go to properties in the panel below the stage go to color->Alpha give 0% to it.

6.Repeat the steps 3 to 5 in layer2 from the frame31 to 46 to 60.to make a new layer, click on the button.

7.Save your work & press enter.

Create a basic animation using shape tweening, frame animation

Create a basic animation using shape tweening, frame animation (copy, paste)
    

Shape tweening

Step 1:-Draw a vector using any of the drawing tools in flash say a small circle & remove its border

Step 2:-Click the 10th frame in the timeline & insert a keyframe (f6), now draw another shape say a diamond using the rectangle tool without a border on to the circle.

Step 3:-Now right click on any frame in between these two key frames & select shape option from the tween panel of the properties inspector

Step 4:-Save your work & test the movie(ctrl+enter)
    


Frame Animation

Step 1:Create a vector/plain text using any of the drawing tools in flash, say a text with ‘Animation’ typed as shown in the example or as per your choice & break it using break apart(ctrl+B)to separate the Alphabets as Shown below.

Step 2:-In frame-by-frame animation we create the object for each frame so as to produce an animation sequence.

Step 3:-Insert keyframe(f6) & move the alphabets so as to produce an animation sequence

Step 4:-Repeat the above step as far as desired to create frame-by-frame animation as shown in the example

Step 5:-Save your work & test the movie(ctrl+Enter)

Create a basic Animation to show the realistic ball movement.

Create a basic Animation to show the realistic ball movement.
(By using Macromedia Flash 8)

Step 1 :- Draw a vector using any of the drawing tools in flash say a small circle & convert it into a symbol (f8) by selecting the graphic option & name the symbol say ball.

Step 2 :-Click the 20th frame in the timeline & insert a frame(f5)

Step 3 :-Now right-click the 20th frame in the timeline & select create motion tween(or motion option from the tween panel of the properties inspector) & insert a keyframe(f6)

Step 4 :-Select the 10th frame & insert a keyframe(f6)&move the ball to a different position say above the current position to create a motion sequence(automatically tweened by flash)

Step 5:-Save your work & test the movie(ctr+enter)

Thursday, January 1, 2015

Solved C Programs

Solved C Programs






1.C program to check odd or even using modulus operator


#include<stdio.h>
main()
{
   int n;
   printf("Enter an integer\n");
   scanf("%d",&n);
    if ( n%2 == 0 )
      printf("Even\n");
   else
      printf("Odd\n");
    return 0;
}


2. Program in C for Fibonacci Series


#include<stdio.h>
 int main()
{
   int n, first = 0, second = 1, next, c;

   printf("Enter the number of terms\n");
   scanf("%d",&n);

   printf("First %d terms of Fibonacci series are :-\n",n);

   for ( c = 0 ; c < n ; c++ )
   {
      if ( c <= 1 )
         next = c;
      else
      {
         next = first + second;
         first = second;
         second = next;
      }
      printf("%d\n",next);
   }
    return 0;
}


3. C program to check number is  palindrome number or not


#include <stdio.h>
 int main()
{
   int n, reverse = 0, temp;
   printf("Enter a number to check if it is a palindrome or not\n");
   scanf("%d",&n);
    temp = n;
    while( temp != 0 )
   {
      reverse = reverse * 10;
      reverse = reverse + temp%10;
      temp = temp/10;
   }

   if ( n == reverse )
      printf("%d is a palindrome number.\n", n);
   else
      printf("%d is not a palindrome number.\n", n);

   return 0;
}


4.C program to check a leap year


#include <stdio.h>
 int main()
{
  int year;

  printf("Enter a year to check if it is a leap year\n");
  scanf("%d", &year);

  if ( year%400 == 0)
    printf("%d is a leap year.\n", year);
  else if ( year%100 == 0)
    printf("%d is not a leap year.\n", year);
  else if ( year%4 == 0 )
    printf("%d is a leap year.\n", year);
  else
    printf("%d is not a leap year.\n", year); 
   return 0;
}


5. Prime number program in c language


#include<stdio.h>
 int main()
{
   int n, i = 3, count, c;
    printf("Enter the number of prime numbers required\n");
   scanf("%d",&n);

   if ( n >= 1 )
   {
      printf("First %d prime numbers are :\n",n);
      printf("2\n");
   }

   for ( count = 2 ; count <= n ;  )
   {
      for ( c = 2 ; c <= i - 1 ; c++ )
      {
         if ( i%c == 0 )
            break;
      }
      if ( c == i )
      {
         printf("%d\n",i);
         count++;
      }
      i++;
   }
    return 0;
}


6. C program to check a number is prime number or not


#include<stdio.h>
main()
{
   int n, c = 2;
    printf("Enter a number to check if it is prime\n");
   scanf("%d",&n);

   for ( c = 2 ; c <= n - 1 ; c++ )
   {
      if ( n%c == 0 )
      {
         printf("%d is not prime.\n", n);
     break;
      }
   }
   if ( c == n )
      printf("%d is prime.\n", n);
    return 0;
}


7. C program to reverse a number  entered 


#include <stdio.h>
 int main()
{
   int n, reverse = 0;
   printf("Enter a number to reverse\n");
   scanf("%d",&n);
    while (n != 0)
   {
      reverse = reverse * 10;
      reverse = reverse + n%10;
      n = n/10;
   }
    printf("Reverse of entered number is = %d\n", reverse);
    return 0;
}



8. Swapping of two numbers in C program 


#include <stdio.h>
int main()
{
   int x, y, temp;

   printf("Enter the value of x and y\n");
   scanf("%d%d", &x, &y);

   printf("Before Swapping\nx = %d\ny = %d\n",x,y);

   temp = x;
   x    = y;
   y    = temp;

   printf("After Swapping\nx = %d\ny = %d\n",x,y);

   return 0;
}


9. Factorial program in C using for loop


#include <stdio.h>
 int main()
{
  int c, n, fact = 1;

  printf("Enter a number to calculate it's factorial\n");
  scanf("%d", &n);

  for (c = 1; c <= n; c++)
    fact = fact * c;

  printf("Factorial of %d = %d\n", n, fact);

  return 0;
}


10. Print the Star as shown below 

    *

  ***

*****

  ***

    *


#include <stdio.h>
int main()
{
  int n, c, k, space = 1;
   printf("Enter number of rows\n");
  scanf("%d", &n);
   space = n - 1;
   for (k = 1; k <= n; k++)
  {
    for (c = 1; c <= space; c++)
      printf(" ");
     space--;
     for (c = 1; c <= 2*k-1; c++)
      printf("*");
     printf("\n");
  }
   space = 1;
   for (k = 1; k <= n - 1; k++)
  {
    for (c = 1; c <= space; c++)
      printf(" ");
     space++;
     for (c = 1 ; c <= 2*(n-k)-1; c++)
      printf("*");
     printf("\n");
  }
   return 0;
}

Featured posts

Happy Independence Day August 15th

 Here's a message for India's Independence Day (August 15th): "शुभ स्वतंत्रता दिवस! आजादी की 79वीं वर्षगांठ पर, आइए हम अपने देश...

Popular posts