Krantik Chavan has Published 329 Articles

How to draw a rounded Rectangle on HTML Canvas?

Krantik Chavan

Krantik Chavan

Updated on 16-Dec-2021 09:57:01

To draw a rectangle in HTML, use the canvas element. With canvas, use the rect() method to draw a rectangle. But, for creating a rounded rectangle, using the rect() method won’t work. We will be using the lineTo() and quadraticCurveTo() method to create a rounded rectangle.This is how you can ... Read More

Animate CSS outline

Krantik Chavan

Krantik Chavan

Updated on 06-Jul-2020 11:53:47

To implement animation on outline property with CSS, you can try to run the following code:ExampleLive Demo                    div {             width: 550px;             height: 350px;             outline: 1px solid blue;             animation: myanim 3s infinite;          }          @keyframes myanim {             50% {                outline: 10px dashed orange;             }          }                     CSS outline property          

Usage of CSS align-content property flex-start value

Krantik Chavan

Krantik Chavan

Updated on 04-Jul-2020 06:16:07

Use the align-content property with value flex-start to set the flex lines in the beginning.ExampleYou can try to run the following code to implement the flex-start value −Live Demo                    .mycontainer {             display: flex; ... Read More

Arrow to the top of the tooltip with CSS

Krantik Chavan

Krantik Chavan

Updated on 02-Jul-2020 14:02:26

Use the bottom CSS property to add arrow to the top of the tooltip.ExampleYou can try to run the following code to add a tooltip with arrow to the top:Live Demo           .mytooltip .mytext {          visibility: hidden;          width: ... Read More

CSS Transition property

Krantik Chavan

Krantik Chavan

Updated on 02-Jul-2020 09:18:48

Use the CSS transition property to set all the four transition properties into a single line. You can try to run the following code to work with the transition property −ExampleLive Demo                    div {           ... Read More

Roll In Animation Effect with CSS

Krantik Chavan

Krantik Chavan

Updated on 29-Jun-2020 07:05:37

To create a roll in animation effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;       ... Read More

Get the class name for various objects in Java

Krantik Chavan

Krantik Chavan

Updated on 29-Jun-2020 06:45:23

The getName() method is used to get the names of the entities such as interface, class, array class, void etc. that are represented by the class objects. These names are returned in the form of a string. The getPackage() method gets the package for the given class.A program that gets ... Read More

Python object serialization (Pickle)

Krantik Chavan

Krantik Chavan

Updated on 27-Jun-2020 15:00:01

The term object serialization refers to process of converting state of an object into byte stream. Once created, this byte stream can further be stored in a file or transmitted via sockets etc. On the other hand reconstructing the object from the byte stream is called deserialization.Python’s terminology for serialization ... Read More

Test interactive Python examples (doctest)

Krantik Chavan

Krantik Chavan

Updated on 27-Jun-2020 14:39:46

Python's standard distribution contains 'doctest' module. This module's functionality makes it possible to search for pieces of text that look like interactive Python sessions and executes these sessions to see if they work exactly as shown. These examples are extracted from docstring expressions in class, module or function. Doctests can ... Read More

How can we retrieve file from database using JDBC?

Krantik Chavan

Krantik Chavan

Updated on 27-Jun-2020 06:18:17

The ResultSet interface provides the methods named getClob() and getCharacterStream() to retrieve Clob datatype, In which the contents of a file are typically stored.These methods accept an integer representing the index of the column (or, a String value representing the name of the column) and retrieves the value at the ... Read More

1 2 3 4 5 ... 33 Next
Advertisements