{"id":10232,"date":"2024-01-10T18:17:00","date_gmt":"2024-01-10T18:17:00","guid":{"rendered":"https:\/\/codehim.com\/?p=10232"},"modified":"2024-01-22T16:18:16","modified_gmt":"2024-01-22T11:18:16","slug":"drawing-with-text-using-html5-canvas","status":"publish","type":"post","link":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/","title":{"rendered":"Drawing with Text Using HTML5 Canvas"},"content":{"rendered":"<p>This code snippet helps you to create a simple drawing tool that lets you draw with text using an HTML5 canvas. Click, drag, and release to create artistic text-based drawings. It allows you to draw using a string of text characters, creating unique visual outputs. It&#8217;s helpful for artistic expression and experimenting with text-based designs.<\/p>\n<p>You can use this code to add an interactive and <a href=\"https:\/\/codehim.com\/others\/jquery-plugin-to-enable-drawing-on-html5-canvas-jquery-sketchit\/\" target=\"_blank\" rel=\"noopener\">creative drawing feature<\/a> to your website. It&#8217;s ideal for artistic expression, letting users draw with text in a visually engaging way.<\/p>\n<h2>How to Draw with Text Using HTML5 Canvas and JS<\/h2>\n<p>1. First of all, include a canvas element in your HTML where the drawing will take place.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;canvas id='canvas'&gt;&lt;\/canvas&gt;\r\n&lt;span id='info'&gt;Click and drag to draw!&lt;span&gt;\r\n\r\n&lt;!-- \r\n  Drawing with text:\r\n  \r\n  -  Click and drag to draw.\r\n  -  Double click to clear.\r\n\r\n  Ported from java at http:\/\/www.generative-gestaltung.de\r\n\r\n  by Tim Holman - @twholman\r\n\r\n--&gt;\r\n<\/pre>\n<p>2. Apply necessary CSS styles to the canvas and span elements. This ensures proper positioning and appearance of the drawing canvas and instructions.<\/p>\n<pre class=\"prettyprint linenums lang-css\">html, body {\r\n  width: 100%;\r\n  height: 100%;\r\n  margin: 0px;\r\n  overflow: hidden;\r\n}\r\nhtml:hover span, body:hover span {\r\n  display: none;\r\n}\r\n\r\ncanvas {\r\n  cursor: crosshair;\r\n}\r\n\r\nspan {\r\n  font-family: 'Georgia', cursive;\r\n  font-size: 40px;\r\n  position: fixed;\r\n  top: 50%;\r\n  left: 50%;\r\n  color: #000;\r\n  margin-top: -40px;\r\n  margin-left: -200px;\r\n}<\/pre>\n<p>3. Finally, copy the following JavaScript code into a separate script file or within <code>&lt;script&gt;&lt;\/script&gt;<\/code> tags within your HTML document. This code handles the drawing functionality.<\/p>\n<p>Modify the <code>letters<\/code> variable to use different text for drawing. Adjust the <code>minFontSize<\/code> and <code>angleDistortion<\/code> variables to alter the drawing&#8217;s appearance.<\/p>\n<pre class=\"prettyprint linenums lang-js\">\/\/ Drawing with text. Ported from Generative Design book - http:\/\/www.generative-gestaltung.de - Original licence: http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n\r\n\/\/ Application variables\r\nvar position = {x: 0, y: window.innerHeight\/2};\r\nvar counter = 0;\r\nvar minFontSize = 3;\r\nvar angleDistortion = 0;\r\nvar letters = \"There was a table set out under a tree in front of the house, and the March Hare and the Hatter were having tea at it: a Dormouse was sitting between them, fast asleep, and the other two were using it as a cushion, resting their elbows on it, and talking over its head. 'Very uncomfortable for the Dormouse,' thought Alice; 'only, as it's asleep, I suppose it doesn't mind.'\";\r\n\r\n\/\/ Drawing variables\r\nvar canvas;\r\nvar context;\r\nvar mouse = {x: 0, y: 0, down: false}\r\n\r\nfunction init() {\r\n  canvas = document.getElementById( 'canvas' );\r\n  context = canvas.getContext( '2d' );\r\n  canvas.width = window.innerWidth;\r\n  canvas.height = window.innerHeight;\r\n  \r\n  canvas.addEventListener('mousemove', mouseMove, false);\r\n  canvas.addEventListener('mousedown', mouseDown, false);\r\n  canvas.addEventListener('mouseup',   mouseUp,   false);\r\n  canvas.addEventListener('mouseout',  mouseUp,  false);  \r\n  canvas.addEventListener('dblclick', doubleClick, false);\r\n  \r\n  window.onresize = function(event) {\r\n    canvas.width = window.innerWidth;\r\n    canvas.height = window.innerHeight;\r\n  }\r\n}\r\n\r\nfunction mouseMove ( event ){\r\n  mouse.x = event.pageX;\r\n  mouse.y = event.pageY;\r\n  draw();\r\n}\r\n\r\nfunction draw() {\r\n if ( mouse.down ) {\r\n    var d = distance( position, mouse );\r\n    var fontSize = minFontSize + d\/2;\r\n    var letter = letters[counter];\r\n    var stepSize = textWidth( letter, fontSize );\r\n    \r\n    if (d &gt; stepSize) {\r\n      var angle = Math.atan2(mouse.y-position.y, mouse.x-position.x);\r\n      \r\n      context.font = fontSize + \"px Georgia\";\r\n    \r\n      context.save();\r\n      context.translate( position.x, position.y);\r\n      context.rotate( angle );\r\n      context.fillText(letter,0,0);\r\n      context.restore();\r\n\r\n      counter++;\r\n      if (counter &gt; letters.length-1) {\r\n        counter = 0;\r\n      }\r\n    \r\n    \/\/console.log (position.x + Math.cos( angle ) * stepSize)\r\n      position.x = position.x + Math.cos(angle) * stepSize;\r\n      position.y = position.y + Math.sin(angle) * stepSize;\r\n\r\n      }\r\n  }     \r\n}\r\n\r\nfunction distance( pt, pt2 ){\r\n  \r\n  var xs = 0;\r\n  var ys = 0;\r\n \r\n  xs = pt2.x - pt.x;\r\n  xs = xs * xs;\r\n \r\n  ys = pt2.y - pt.y;\r\n  ys = ys * ys;\r\n \r\n  return Math.sqrt( xs + ys );\r\n}\r\n\r\nfunction mouseDown( event ){\r\n  mouse.down = true;\r\n  position.x = event.pageX;\r\n  position.y = event.pageY;\r\n  \r\n  document.getElementById('info').style.display = 'none';\r\n}\r\n\r\nfunction mouseUp( event ){\r\n    mouse.down = false;\r\n}\r\n\r\nfunction doubleClick( event ) {\r\n  canvas.width = canvas.width; \r\n}\r\n\r\nfunction textWidth( string, size ) {\r\n  context.font = size + \"px Georgia\";\r\n  \r\n  if ( context.fillText ) {\r\n    return context.measureText( string ).width;\r\n  } else if ( context.mozDrawText) {\r\n    return context.mozMeasureText( string );\r\n  }\r\n  \r\n };\r\n\r\ninit();<\/pre>\n<p>Change the canvas size by adjusting the <code>canvas.width<\/code> and <code>canvas.height<\/code> properties.<\/p>\n<p>That&#8217;s all! hopefully, you have successfully created Drawing With Text Using HTML5 Canvas. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This code snippet helps you to create a simple drawing tool that lets you draw with text using an HTML5&#8230;<\/p>\n","protected":false},"author":1,"featured_media":10246,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[63],"tags":[94],"class_list":["post-10232","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html5-css3","tag-html5-canvas"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Drawing with Text Using HTML5 Canvas &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Drawing with Text Using HTML5 Canvas. You can view demo and download the source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Drawing with Text Using HTML5 Canvas &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Drawing with Text Using HTML5 Canvas. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-10T18:17:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T11:18:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/12\/Drawing-with-Text-Using-HTML5-Canvas.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Drawing with Text Using HTML5 Canvas\",\"datePublished\":\"2024-01-10T18:17:00+00:00\",\"dateModified\":\"2024-01-22T11:18:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/\"},\"wordCount\":220,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/12\/Drawing-with-Text-Using-HTML5-Canvas.png\",\"keywords\":[\"HTML5 Canvas\"],\"articleSection\":[\"HTML5 &amp; CSS3\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/\",\"url\":\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/\",\"name\":\"Drawing with Text Using HTML5 Canvas &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/12\/Drawing-with-Text-Using-HTML5-Canvas.png\",\"datePublished\":\"2024-01-10T18:17:00+00:00\",\"dateModified\":\"2024-01-22T11:18:16+00:00\",\"description\":\"Here is a free code snippet to create a Drawing with Text Using HTML5 Canvas. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/12\/Drawing-with-Text-Using-HTML5-Canvas.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/12\/Drawing-with-Text-Using-HTML5-Canvas.png\",\"width\":1280,\"height\":960,\"caption\":\"Drawing with Text Using HTML5 Canvas\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML5 &amp; CSS3\",\"item\":\"https:\/\/codehim.com\/category\/html5-css3\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Drawing with Text Using HTML5 Canvas\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Drawing with Text Using HTML5 Canvas &#8212; CodeHim","description":"Here is a free code snippet to create a Drawing with Text Using HTML5 Canvas. You can view demo and download the source code.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/","og_locale":"en_US","og_type":"article","og_title":"Drawing with Text Using HTML5 Canvas &#8212; CodeHim","og_description":"Here is a free code snippet to create a Drawing with Text Using HTML5 Canvas. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-10T18:17:00+00:00","article_modified_time":"2024-01-22T11:18:16+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/12\/Drawing-with-Text-Using-HTML5-Canvas.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Drawing with Text Using HTML5 Canvas","datePublished":"2024-01-10T18:17:00+00:00","dateModified":"2024-01-22T11:18:16+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/"},"wordCount":220,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/12\/Drawing-with-Text-Using-HTML5-Canvas.png","keywords":["HTML5 Canvas"],"articleSection":["HTML5 &amp; CSS3"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/","url":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/","name":"Drawing with Text Using HTML5 Canvas &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/12\/Drawing-with-Text-Using-HTML5-Canvas.png","datePublished":"2024-01-10T18:17:00+00:00","dateModified":"2024-01-22T11:18:16+00:00","description":"Here is a free code snippet to create a Drawing with Text Using HTML5 Canvas. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/12\/Drawing-with-Text-Using-HTML5-Canvas.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/12\/Drawing-with-Text-Using-HTML5-Canvas.png","width":1280,"height":960,"caption":"Drawing with Text Using HTML5 Canvas"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/html5-css3\/drawing-with-text-using-html5-canvas\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"HTML5 &amp; CSS3","item":"https:\/\/codehim.com\/category\/html5-css3\/"},{"@type":"ListItem","position":3,"name":"Drawing with Text Using HTML5 Canvas"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":700,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=10232"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10232\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/10246"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=10232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=10232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=10232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}