The SVG path element is used for drawing complex shapes in the SVG path specification. It is the most complex element for drawing built-in shapes.
Paths represent the geometry of the outline of an object using commands. They take a single attribute to describe what to draw.
In SVG the path element is represented by
<path d=”” /> d will take the path string.
In RaphaelJS, the path string is given to the library to handle drawing.
We will use a grid of 500 by 500 pixels to cover the topic of paths. …
Write a program that uses console.log to print all the numbers from 1 to 100,
with two exceptions. For numbers divisible by 3, print “Fizz” instead of the
number, and for numbers divisible by 5 (and not 3), print “Buzz” instead.
When you have that working, modify your program to print “FizzBuzz” for
numbers that are divisible by both 3 and 5 (and still print “Fizz” or “Buzz”
for numbers divisible by only one of those).
The code below will draw a circle of radius 50 pixels at point (50, 50).
When working on the web, there are two types of image formats that you can use:
Vector graphics can be drawn by writing code to create them. Programs such as Inkscape and Illustrator also use them in their default formats.
Take for example the map of…
Games of chance have a way of exciting us. We play them hoping the odds will be in our favor.
The very first program that I would write would be a Lottery Simulator. It was based on a lottery were you had to pick 6 numbers on a sheet of numbers from 1 to 36.
The winning numbers were announced each week in a TV game show.
In this article we shall create a lottery simulator using the Python programming language.
The simulator consists of 3 parts:
Having spent close to a decade in the tech ecosystem in Africa, I can safely say that not much excites me in the industry.
However, since I heard about Blockchain Technology, I have been excited by its possibilities. I joined the Blockchain Nigeria User Group (BNUG) and also finished the course from the University of Nicosia.
It would be there that I would get to follow the process of development of a Bitcoin node that uses solar electricity by by Chimezie Chuta of Blockspace Technologies. Chimezie Chuta is also the Founder and Coordinator of Blockchain Nigeria User Group (BNUG).
Computer programming languages allow us to give instructions to a computer in a language the computer understands.
The diagram above shows how programming languages hide details from the user.
At the base of the diagram, we have the computer hardware.
The hardware refers to the part of the computer that we can see and touch.
To control a computer, we need to use a machine language. Each computer has it’s own machine language and programmers found it hectic to have to learn because it was in binary.
As time when on, the Assembly Language was developed. Assembly Language provided a…
Adinkrahene is the symbol for leadership and charisma. This symbol is reportedly the inspiration for the design of the other symbols. Its simple yet abstract design, consisting of three concentric circles emphasizes the importance of ideas and abstract concepts.
In the last section, I introduced the grid. The grid will allow us create any symbol we want to because we can analyse and replicate the symbol of our choice.
We will draw a grid of 5 pixel squares on the image of the Adinkra symbol of our choice and replicate that on our grid. The squares on our grid are…
A computer is a machine that processes information under the control of a program.
By seeing the computer as a machine, you can then come to appreciate it like any device around you.
What however makes the computer special is the fact that you can program it.
Computer programming is a way of giving computers instructions about what they should do in order to complete a set task.
A computer program will have the ability to take input data from a device such as a keyboard, process calculations, and make decisions based on certain conditions.
The practice of programming is…