Add Dashed Stroke to a Rectangle Using Fabric.js

Rahul Gurung
Updated on 28-Jun-2022 12:10:15

765 Views

In this tutorial, we are going to learn how to add a dashed stroke to a Rectangle using FabricJS. Rectangle is one of the various shapes provided by FabricJS. In order to create a rectangle, we will have to create an instance of fabric.Rect class and add it to the canvas. The strokeDashArray property allows us to specify a dash pattern for the object's stroke.Syntaxnew fabric.Rect( { strokeDashArray: Array }: Object)ParametersOptions (optional) − This parameter is an Object which provides additional customizations to our rectangle. Using this parameter colour, cursor, stroke width and a lot of other properties can be ... Read More

Add Curves to a Rectangle Using Fabric.js

Rahul Gurung
Updated on 28-Jun-2022 11:54:45

2K+ Views

In this tutorial, we are going to learn how to add curves to a Rectangle using FabricJS. Rectangle is one of the various shapes provided by FabricJS. In order to create a rectangle, we will have to create an instance of fabric.Rect class and add it to the canvas.We can customize a rectangle object by specifying its position, colour, opacity and dimension. However, we can also use properties like rx and ry which allow us to assign the horizontal and vertical border radius of a Rectangle.Syntaxnew fabric.Rect({ rx : Number, ry: Number }: Object)ParametersOptions (optional) − This parameter is an ... Read More

Difference Between EMF and Voltage

Manish Kumar Saini
Updated on 28-Jun-2022 11:44:12

4K+ Views

EMF and Voltage are the two fundamental aspects of electrical and electronics engineering. They may appear as same, but they are different electrical quantities. In order to understand the difference between EMF and voltage, we first need to understand their meaning.What is EMF?EMF stands for Electromotive Force. The measure of energy the power source (ex. Battery) gives to each Coulomb of charge is known as EMF of the power source or battery. The EMF is denoted by letter ‘E’. The SI unit of EMF is the same as the voltage, which is Volts.The EMF is the factor which creates and ... Read More

Lock Vertical Scaling of Rectangle Using Fabric.js

Rahul Gurung
Updated on 28-Jun-2022 09:16:25

161 Views

In this tutorial, we are going to learn how to lock the vertical scaling of a Rectangle using FabricJS. Just as we can specify the position, colour, opacity and dimension of a rectangle object in the canvas, we can also specify whether we want to stop scaling an object vertically. This can be done by using the lockScalingY property.Syntaxnew fabric.Rect({ lockScalingY : Boolean }: Object)ParametersOptions (optional) − This parameter is an Object which provides additional customizations to our rectangle. Using this parameter, properties such as colour, cursor, stroke width and a lot of other properties can be changed related to ... Read More

Difference Between Conduction and Convection

Manish Kumar Saini
Updated on 28-Jun-2022 06:58:45

311 Views

Both conduction and convection are modes of heat transfer from one system to another. When there is a difference in the temperature of two systems, then the transfer of heat takes place from the system of higher temperature to the system of lower temperature.In practice, this transfer of heat takes place in three different modes viz. conduction, convection and radiation. But, in this article, we will only discuss about conduction and convection and how they are different from each other.What is Conduction of Heat?When the transfer of heat takes place from one part of the substance to another part without ... Read More

Difference Between Battery and Capacitor

Manish Kumar Saini
Updated on 28-Jun-2022 06:55:40

2K+ Views

Both Battery and Capacitor seem to be similar in the first glance because they store and release the electric energy, but there are many differences between them which we are going to highlight in this article.One of the most significant differences between a battery and a capacitor is that a battery stores electrical energy in the form of chemical energy and again converts it into electrical energy when required, while a capacitor stores electrical energy in the form of electrostatic field.What is a Battery?A battery is a device which is used as the source of energy in electrical and electronic ... Read More

What is Data Loss Prevention (DLP)? Types, Importance & How It Works

Pranav Bhardwaj
Updated on 27-Jun-2022 14:32:54

445 Views

Data Loss Prevention (DLP) refers to the cybersecurity measures and safeguards that individuals and corporations employ to prevent and identify data loss on their networks, whether as a consequence of data breaches, malware attacks, or other means. While ordinary Internet users should be interested in DLP to safeguard their personal data and devices, corporations are investing in DLP to secure their data in accordance with government laws.DLP technologies perform both content inspection and contextual analysis of data sent via messaging applications like email and instant messaging, in motion over the network, in use on a managed endpoint device, and at ... Read More

What is Cyber Terrorism and How is it Different from Hacktivism

Pranav Bhardwaj
Updated on 27-Jun-2022 14:29:40

386 Views

The US Federal Bureau of Investigation defines "cyberterrorism" as a deliberate attack on a computer system, computer data, programs, or other material with the express purpose of inflicting violence on clandestine operatives and subnational groups.Cyberterrorism is defined as the use of computer technology to commit acts of terrorism. We must first distinguish between "crime" and "terrorism" because they are similar in certain ways, and both attack societies' capacity to maintain internal order.Terrorism is "political, " whereas crime is "personal".Individuals commit crimes for various reasons, the most significant of which are personal gains and the desire to mentally and/or physically injure ... Read More

Domain Generation Algorithm (DGA): How It Works and How to Detect

Pranav Bhardwaj
Updated on 27-Jun-2022 14:22:21

337 Views

Cyber-attackers utilize a Domain Generation Algorithm (DGA) to generate new domain names and IP addresses for malware's command and control servers. It is practically hard for security professionals to detect and limit the attack since it is carried out in a seemingly random manner."Conficker A and B", a family of worms that created 250 domain names every day in the beginning, promoted the tactic. Starting with "Conficker C", the virus would produce 50, 000 domain names each day and contact 500 of them, providing an infected workstation a 1% chance of getting updated every day if the malware controllers only ... Read More

What is Stuxnet Worm: Importance, How it Works and Prevention

Pranav Bhardwaj
Updated on 27-Jun-2022 14:20:56

226 Views

Stuxnet is a computer worm that was created to attack Iran's nuclear facilities but has since mutated and spread to other industrial and energy-generating facilities.The original Stuxnet malware attack was aimed at PLCs, which are used to automate machine processes. It was the first known virus capable of crippling hardware when it was discovered in 2010. It was identified to have been manufactured by the US National Security Agency, the CIA, and Israeli intelligence, generating a frenzy of media attention.Stuxnet works by targeting machines and networks that use the Microsoft Windows operating system, then looking for Siemens Step7 software using ... Read More

Advertisements