• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Embed Matrix Code Rain Animation Effect in WordPress Post

By Abhishek Ghosh September 29, 2015 9:59 am Updated on September 29, 2015

Embed Matrix Code Rain Animation Effect in WordPress Post

Advertisement

One Can Create The Matrix Code Rain Animation Effect With Javascript on HTML5 Webpage and Customize According to Need. Here is resources. We talked about basics about HTML5 canvas. We can use Javascript library like jQuery for this purpose. At the time of publication of this article, such animated example can be seen on author’s personal website – abhishekghosh.pro. Allow some time to automatically get the width adjusted.

Embed Matrix Code Rain Animation Effect in WordPress Post

Blue Pill – Red Pill test described here, which is a serious test; indeed.

 

The Matrix Code Rain Animation Effect With Javascript

 

Basic can be done with HTML5 Canvas API and Java Script with this code, first we need to load jquery :

Advertisement

---

Vim
1
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>

then we add a canvas :

Vim
1
<canvas id="q" width="500" height="500">Sorry Your Browser Does Not Support</canvas>

Then this code will be injected :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<canvas id=canvas>
<script>
// http://jsfiddle.net/muV99/16/
var ctx = canvas.getContext('2d');
var columns = [];
var chars = [];
canvas.height = window.screen.height;
canvas.width = window.screen.width;
ctx.translate(canvas.width, 0);
ctx.scale(-1, 1);
for (i = 0; i < 256; columns[i] = 1, chars[i++] = '゠');
ctx.shadowBlur = 2;
function step() {
    ctx.fillStyle = 'rgba(0,0,0,0.05)';
    ctx.shadowColor = '#000';
    ctx.fillRect(0, 0, canvas.width, canvas.height);
    columns.map(function (value, index) {
        ctx.fillStyle = ctx.shadowColor = '#000';
        ctx.fillRect(index * 10, value - 10, 10, 10);
        ctx.fillStyle = ctx.shadowColor = '#0F0';
        ctx.fillText(chars[index], index * 10, value - 10);
        columns[index] = value > 758 + Math.random() * 1e4 ? 0 : value + 10;
        chars[index] = String.fromCharCode(12448 + Math.random() * 96);
        ctx.fillStyle = ctx.shadowColor = '#AFA';
        ctx.fillText(chars[index], index * 10, value);
    });
}
setInterval(step, 33);
</script>

It can be done here :


 

Embedding The Matrix Code Rain Animation Effect In WordPress Post

 

If you want something like our above embedded thing, simply adjust these two lines :

Vim
1
2
canvas.height = window.screen.height;
canvas.width = window.screen.width;

to :

Vim
1
2
canvas.height = 300;
canvas.width = 400;

Practically, you are copy pasting this on your WordPress post editor in Text mode :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<canvas id=canvas>
<script>
var ctx = canvas.getContext('2d');
var columns = [];
var chars = [];
canvas.height = 300;
canvas.width = 400;
ctx.translate(canvas.width, 0);
ctx.scale(-1, 1);
for (i = 0; i < 256; columns[i] = 1, chars[i++] = '゠');
ctx.shadowBlur = 2;
function step() {
    ctx.fillStyle = 'rgba(0,0,0,0.05)';
    ctx.shadowColor = '#000';
    ctx.fillRect(0, 0, canvas.width, canvas.height);
    columns.map(function (value, index) {
        ctx.fillStyle = ctx.shadowColor = '#000';
        ctx.fillRect(index * 10, value - 10, 10, 10);
        ctx.fillStyle = ctx.shadowColor = '#0F0';
        ctx.fillText(chars[index], index * 10, value - 10);
        columns[index] = value > 758 + Math.random() * 1e4 ? 0 : value + 10;
        chars[index] = String.fromCharCode(12448 + Math.random() * 96);
        ctx.fillStyle = ctx.shadowColor = '#AFA';
        ctx.fillText(chars[index], index * 10, value);
    });
}
setInterval(step, 33);
</script>

Possibly you’ll not need to load jquery as your theme already loaded in front end.

Tagged With matrix code , matrix rain , matrix rain embed , matrix rain html5 , matrix rain wordpress , The Matrix Code Rain Red
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Embed Matrix Code Rain Animation Effect in WordPress Post

  • Create Animated Progress Showing Favicon Like Pie Charts

    Create Animated Progress Showing Favicon Like Pie Charts, sounds odd but there is no way to describe this cute function that adds a virtual progress bar in Pie.

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • ESP32 as Hardware Random Number Generator

    The capability of the ESP32 to generate truly random numbers is important for cryptographic operations. A random number generator generates a sequence of random numbers. A hardware random number generator is also known as a true random number generator. It generates random numbers from some physical process, not from code. A fundamental distinction is made […]

  • How to Shoot in Rain with Digital Camera ?

    How to Shoot in Rain with Digital Camera which are not of actually weather resistant professional grade. That includes most consumer and prosumer grade DSLRs.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Time Series Analysis: OverviewDecember 5, 2023
  • Data Mining IssuesDecember 4, 2023
  • What Are Different Tasks of Data Mining?December 4, 2023
  • What is Web MiningDecember 3, 2023
  • Recursion in ProgrammingDecember 3, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy